mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 04:33:10 +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:
@@ -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