You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
During the take off ramp, the vehicle doesn't respect the MPC_TKO_SPEED constraint. Instead, the vehicle accelerates to MPC_Z_VEL_MAX_UP even when below MPC_LAND_ALT1 (and after finishing the ramp it slows down again if still below MPC_LAND_ALT1).
To Reproduce
Steps to reproduce the behavior:
Start SITL (tested with Gazebo's standard VTOL plane, but I imagine it's the same for any MC)
Set up parameters (tested with MPC_TKO_SPEED =1m/s, MPC_Z_VEL_MAX_UP = 2.5m/s, MPC_TKO_RAMP_T = 5s, MPC_LAND_ALT1 = 10m in SITL, and with MPC_TKO_SPEED =1.5m/s, MPC_Z_VEL_MAX_UP = 2.5m/s, MPC_TKO_RAMP_T = 5s, MPC_LAND_ALT1 = 12m in the real world)
Take off
I experienced this behaviour with the take off command in QGC as well as launching missions. It's reproducible in SITL and on our real VTOL drone.
Expected behavior
Have the vehicle respect the MPC_TKO_SPEED during the take off ramp
I looked into that issue and I'm able to reproduce it.
The problem is the following: the trajectory generator produces a velocity and a position setpoint but the logic for the takeoff ramps cuts the velocity setpoint. The signals are not consistent anymore (derivative of position != velocity) and the position error increases -> velocity sp wants to increase to reduce the position error and this is why it goes beyond the takeoff velocity parameter.
A proper solution would be to tell the trajectory generator what's the current max velocity or even better, what's the current max acceleration (defined by the takeoff ramp).
On a side note: why does QGC complain about MPC_TKO_RAMP_T having to be between 0 and 1 and in the parameter reference it says between 0 and 5?
You still have the old metadata where the max was 1. You need to update the metadata or get a newer version of QGC
bresch
changed the title
[MC / VTOL] Take off ramp ignores MPC_TKO_SPEED constraint
[MC / VTOL] Take off ramp overshoots MPC_TKO_SPEED constraint
Aug 14, 2019
Describe the bug
During the take off ramp, the vehicle doesn't respect the MPC_TKO_SPEED constraint. Instead, the vehicle accelerates to MPC_Z_VEL_MAX_UP even when below MPC_LAND_ALT1 (and after finishing the ramp it slows down again if still below MPC_LAND_ALT1).
To Reproduce
Steps to reproduce the behavior:
I experienced this behaviour with the take off command in QGC as well as launching missions. It's reproducible in SITL and on our real VTOL drone.
Expected behavior
Have the vehicle respect the MPC_TKO_SPEED during the take off ramp
Log Files and Screenshots
Always provide a link to the flight log file:
https://logs.px4.io/plot_app?log=a9e878be-395a-45ee-8f72-40db4b265931
Add screenshots to help explain your problem.
Drone (please complete the following information):
On a side note: why does QGC complain about MPC_TKO_RAMP_T having to be between 0 and 1 and in the parameter reference it says between 0 and 5?
The text was updated successfully, but these errors were encountered: