Apply suggestions from code review

Co-Authored-By: Mathieu Bresciani <brescianimathieu@gmail.com>
This commit is contained in:
Roman Bapst
2020-04-02 13:45:52 +03:00
co-authored by Mathieu Bresciani
parent 005bc97959
commit 47f0e91076
3 changed files with 5 additions and 10 deletions
@@ -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;