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

SITL VTOL: scale outputs based on motor count (param VT_MOT_COUNT) #11287

Closed
wants to merge 2 commits into from

Conversation

jlecoeur
Copy link
Contributor

@jlecoeur jlecoeur commented Jan 24, 2019

Describe problem solved by the proposed pull request
In the SITL MAVLink module, the outputs are scaled based on the number of motors determined from the vehicle type. For tiltrotors and other types of VTOLs, the vehicle type is not sufficient to determine the number of motors.
Example: Tricopter tiltrotor with servo on 4th output. The servo output is scaled in range [0,1] (as a motor) instead of [-1, 1].

Describe your preferred solution
The parameter VT_MOT_COUNT is used to determine the number of motors and correctly scale outputs in the ranges [0,1] or [-1,1].

Describe possible alternatives
Getting rid of the dedicated simulation MAVLink module?

@jlecoeur jlecoeur added bug Hybrid VTOL 🛩️🚁 Multirotor + Fixedwing! Sim: SITL software in the loop simulation labels Jan 24, 2019
@jlecoeur jlecoeur requested a review from RomanBapst January 24, 2019 00:35
@jlecoeur
Copy link
Contributor Author

I am not sure what the CI failure is.
In both commits the standard_vtol model goes down shortly after take off. It is of type MAV_TYPE_VTOL_RESERVED2 which is affected by the first commit, however the second commit should have fixed it but obviously did not. Any input?

@jlecoeur jlecoeur force-pushed the pr-vtol_sitl_motor_count branch 2 times, most recently from b504ae0 to 0c7a4f8 Compare February 5, 2019 20:33
@jlecoeur
Copy link
Contributor Author

jlecoeur commented Feb 6, 2019

CI error in SITL tests, the problem is described in #11380

@jlecoeur jlecoeur force-pushed the pr-vtol_sitl_motor_count branch from 0c7a4f8 to 6db57e0 Compare February 15, 2019 14:41
irsdkv added a commit to irsdkv/Firmware that referenced this pull request Jun 4, 2019
The VT_PSH_MOT_COUNT (push / pull motors count) parameter specifies the
number of pushing / pulling motors for the copter.

The default value is 1, so the old description files will be valid.

This parameter is necessary because of without it you can't give a full
description of the nonstandard VTOL vehicle type with several push or
pull engines.

For the new parameter used reserved vehicle type MAV_TYPE_VTOL_RESERVED3,
which may coverage most of future nonstandard VTOL types.

Thanks to Julien Lecoeur for PX4#11287.
irsdkv added a commit to irsdkv/Firmware that referenced this pull request Jun 4, 2019
The VT_PSH_MOT_COUNT (push / pull motors count) parameter specifies the
number of pushing / pulling motors for the copter.

The default value is 1, so the old description files will be valid.

This parameter is necessary because of without it you can't give a full
description of the nonstandard VTOL vehicle type with several push or
pull engines.

For the new parameter used reserved vehicle type MAV_TYPE_VTOL_RESERVED3,
which may coverage most of future nonstandard VTOL types.

Thanks to Julien Lecoeur for PX4#11287.
@PX4 PX4 deleted a comment from stale bot Jul 15, 2019
@stale stale bot removed the Admin: Wont fix label Jul 15, 2019
@stale
Copy link

stale bot commented Oct 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Oct 13, 2019
@jlecoeur jlecoeur closed this Nov 23, 2019
@LorenzMeier LorenzMeier deleted the pr-vtol_sitl_motor_count branch January 18, 2021 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Hybrid VTOL 🛩️🚁 Multirotor + Fixedwing! Sim: SITL software in the loop simulation stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants