Open okalachev opened 4 years ago
Can you provide a log? EDIT: with high-rate logging profile activated.
Diagonal flip attempts in SITL:
Can you enable MC_AIRMODE
? Then it will work.
The problem is that the demands you send are extremely high, and w/o airmode, roll demands have priority over pitch at the lower end.
Thanks for the answers, @bkueng.
But honestly, I don't see any sensible reason to prioritize roll demands over pitch in quadcopters, even if airmode is off. Besides, in previous version such setpoints worked correctly.
Now, it turns out, that with airmode off (which is the default), the user doesn't have a way to make the drone rotate in pitch and roll axes at maximum speed. They either should somehow know the maximum possible rotation speed of the drone, either get the drone rotating over some axes faster than over another.
Finally, the commit description reads "The behavior for non-airmode and roll/pitch airmode should be the same as before". But the behavior is not the same as before.
Hi @okalachev , I'm sorry that default behavior (airmode disabled) changed for your acrobatic flights but this mode hasn't been designed for this application. This is exactly for this kind of application that airmode have been created and performs really well (please try it! :) ).
The reason it worked before was more a side effect than a feature and obtaining the same behavior now might not be straightforward: the current strategy is to desaturate one axis at a time and having the same roll and pitch priority would require a 2D desaturation.
To conclude, if you can derive and/or implement a nice solution to make an efficient 2D desaturation, I'll be more than happy to review it (improvements are always welcome!), but my general answer is : if you want to perform acrobatic flights, enable airmode.
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.
Making automated flips on PX4 is possible with angular velocity setpoints in OFFBOARD mode. However, after commit https://github.com/PX4/Firmware/commit/8bcf54688a1cfe7a042a1df847c120d73fcc0264 the behaviour has regressed.
Before, it was possible to make PX4 do a diagonal flip (by pitch and roll simultaneously). After, it only rotates by pitch, ignoring the roll rate setpoint. It reproduces in both SITL and a real drone.
To Reproduce Send setpoints: pitch rate = 30 radians roll rate = 30 radians thrust = 0.2
Expected behavior Diagonal flipping (as it was in v1.8.2).
Actual behavior Pitch flipping.
@bkueng, please, help!