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:
Silvan Fuhrer
2022-10-26 14:05:53 +02:00
parent 473b471fb6
commit 5edbc2f80a
-6
View File
@@ -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();
}
}