-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Allow more than 4 MC motors in VTOL Simulator #12166
Conversation
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.
You are welcome, this is a cleaner solution. Feel free to close my PR when this is in. Regarding the parameters, what about this:
|
Hello Thank you, I think that the new names will be clearer. Renamed these parameters and variables dependent on them. |
Rename VT_MOT_COUNT to VT_MC_MOT_COUNT and VT_PSH_MOT_COUNT to VT_FW_MOT_COUNT for more accurately match their meaning.
3238c6e
to
4cb84b2
Compare
4cb84b2
to
a2aa61c
Compare
b51f439
to
9b44c27
Compare
@jlecoeur should I do any additional improvements? |
This is the PR we are looking for to be merged. 4 MC motors for VTOL is an annoying restriction. Dear maintainers pls let us know how do you see the change like this could be accepted.. |
We generally try to avoid renaming parameters because it breaks existing setups. This feels like it could be a piece of metadata we should just be getting from a mixing system rather than a simple motor count (that's kind of a leaky abstraction). |
Hi, @dagar! Does that means you want to get rid of VT_MOT_COUNT as well? The solution proposed just extends the approache used before with VT_MOT_COUNT. So it is based on the architecture already used in the code. I see 5 variants to solve this situation:
Could you pls let us know which variant is acceptable for you? Or suggest another approach? |
The problem was not solved I believe. Or putting it differently that PR solves different kind of problem. The main problem we had was simulator does not support more than 4 MC motors for standard VTOL. Number 4 is hardcoded in Some other downsides of approach in the PR you mentioned. No more than 8 MC motors are possible for VTOL. And in order to get quantity of MC motors one have to extract that number from VT_MOT_ID in some inconvenient way. |
You are right @a6a3uh, this is not completely solved. What I suggest:
|
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
I will create new PR using |
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 some other types of VTOLs, the vehicle type is not sufficient to determine the number of motors.
Describe your preferred solution
The VT_PSH_MOT_COUNT (push / pull motors count) parameter specifies the number of pushing / pulling motors for the copter. This new parameter together with VT_MOT_COUNT used to define total amount of motors in VTOL vehicle.
The default value is 1, so the old description files will be valid in case of reuse it to describe the new VTOL copters.
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.
Additional context
Thanks to @jlecoeur for #11287.