Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Motor/Moment mapping #3

Open
skulumani opened this issue Jan 25, 2017 · 0 comments
Open

Motor/Moment mapping #3

skulumani opened this issue Jan 25, 2017 · 0 comments

Comments

@skulumani
Copy link
Collaborator

skulumani commented Jan 25, 2017

The mapping from controller moment to motor commands is done using

  // Given the UAV arm length of 0.31 m and a prop. angle of 15 deg.
  invFMmat <<  0.0000,    1.2879,   -0.1725,   -0.0000,    1.1132,    0.3071,
  -1.1154,    0.6440,    0.1725,    0.9641,   -0.3420,    0.7579,
  -1.1154,   -0.6440,   -0.1725,   -0.9641,   -0.7712,    1.7092,
  -0.0000,   -1.2879,    0.1725,         0,    1.1132,    0.3071,
  1.1154,   -0.6440,   -0.1725,    0.9641,   -0.3420,    0.7579,
  1.1154,    0.6440,    0.1725,   -0.9641,   -0.7712,    1.7092;

which is found here. It might make sense to make this a function rather than hard coded.

Some ideas:

Inputs: Motor arm length, angle of rotors, number of rotors
Outputs: Mapping matrix

I'll also give this a shot since it's easy and I probably can't screw it up too much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant