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

VTOL motor output handling #12352

Merged
merged 2 commits into from
Jun 27, 2019
Merged

VTOL motor output handling #12352

merged 2 commits into from
Jun 27, 2019

Conversation

RomanBapst
Copy link
Contributor

We used to have VT_MOT_COUNT to specify how many motors we have that provide lift during hover.
The assumption was always that the motors are the first actuators connected to the pwm rail.
However, if this is not the case then there is no way to know if a specific output controls a motor or not.
Currently we still need this information as we directly control pwm outputs for VTOL.
My plan is to remove this as soon as possible, e.g. push the logic into the mixer and create an API for it.
We could either extend the actuator controls message or create a new message.

- VT_MOT_COUNT assumed that motors were always the first outputs. This
does not have to be true always. VT_MOT_ID allows to specify precisely how
many motors we have for hovering and to which channel they are connected.

Signed-off-by: RomanBapst <[email protected]>
@dagar
Copy link
Member

dagar commented Jun 27, 2019

My plan is to remove this as soon as possible, e.g. push the logic into the mixer and create an API for it.
We could either extend the actuator controls message or create a new message.

Ok let me know if/when you'd like to discuss this. With proper interfaces we should already have all the information needed from the mixer(s) as well as the possibility of asking for what we want higher level to shut down certain motors rather than hacking and restoring PWM limits.

Maybe the basis of a control allocation module that knows the vehicle type, relevant mixers (including actual geometry), and some other metadata.

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

Successfully merging this pull request may close these issues.

3 participants