Flight tasks: avoid using *= for scalar to vector assignment

It's confusing and there is a corner case where the result is incorrect:
*= 0 will not set the variable to 0 if it's already NAN.
This commit is contained in:
Beat Küng
2018-10-04 15:09:02 +02:00
committed by Dennis Mannhart
parent bb756e0e12
commit 206baa7432
3 changed files with 7 additions and 7 deletions
@@ -136,7 +136,7 @@ bool FlightTaskAuto::_evaluateTriplets()
} else {
tmp_target(0) = _lock_position_xy(0);
tmp_target(1) = _lock_position_xy(1);
_lock_position_xy *= NAN;
_lock_position_xy.setAll(NAN);
}
} else {