mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-03 06:50:59 +08:00
Navigator: remove update of reposition setpoint at Transition command
This was previously required to reset the flight speed after a VTOL transition, but is now no longer required as the DO_CHANGE_SPEED commands are handles directly in the controllers. Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
1 parent
473b471fb6
commit
5edbc2f80a
1 file changed
-6
@@ -559,12 +559,6 @@ void Navigator::run()
|
||||
// reset cruise speed and throttle to default when transitioning (VTOL Takeoff handles it separately)
|
||||
reset_cruising_speed();
|
||||
set_cruising_throttle();
|
||||
|
||||
// need to update current setpooint with reset cruise speed and throttle
|
||||
position_setpoint_triplet_s *rep = get_reposition_triplet();
|
||||
*rep = *(get_position_setpoint_triplet());
|
||||
rep->current.cruising_speed = get_cruising_speed();
|
||||
rep->current.cruising_throttle = get_cruising_throttle();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user