mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 06:11:36 +08:00
Apply suggestions from code review
Co-Authored-By: Mathieu Bresciani <brescianimathieu@gmail.com>
This commit is contained in:
co-authored by
Mathieu Bresciani
parent
005bc97959
commit
47f0e91076
@@ -64,9 +64,8 @@ bool FlightTaskTransition::update()
|
||||
// demand zero vertical velocity and level attitude
|
||||
// tailsitters will override attitude and thrust setpoint
|
||||
// tiltrotors and standard vtol will overrride roll and pitch setpoint but keep vertical thrust setpoint
|
||||
_position_setpoint *= NAN;
|
||||
_position_setpoint.setAll(NAN);
|
||||
_velocity_setpoint(2) = 0.0f;
|
||||
_position_setpoint(2) = NAN;
|
||||
|
||||
_yaw_setpoint = NAN;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user