-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Conversation
I am not sure what the CI failure is. |
f465c43
to
3acdcf9
Compare
b504ae0
to
0c7a4f8
Compare
CI error in SITL tests, the problem is described in #11380 |
0c7a4f8
to
6db57e0
Compare
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.
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.
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
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?