FlightTaskAuto: reference update only if refence altitude has not bee set.

This commit is contained in:
Dennis Mannhart
2018-07-20 09:26:18 +02:00
committed by Lorenz Meier
parent 45810ec2b4
commit 66d5f2ffd2
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ private:
map_projection_reference_s _reference; /**< Reference frame from global to local. */
map_projection_reference_s _reference_position{}; /**< Structure used to project lat/lon setpoint into local frame. */
float _reference_altitude = 0.0f; /**< Altitude relative to ground. */
float _reference_altitude = NAN; /**< Altitude relative to ground. */
hrt_abstime _time_stamp_reference = 0; /**< time stamp when last reference update occured. */
bool _evaluateTriplets(); /**< Checks and sets triplets. */