mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 01:43:34 +08:00
FlightTaskManualAltitude: Fix double->float conversion in initialization
This gives an error on some new compilers, e.g. riscv64-unknown-elf 10.2.0 Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Lorenz Meier
parent
532f370e7d
commit
ac6e7a1c6c
@@ -139,8 +139,8 @@ private:
|
||||
bool _terrain_follow{false}; /**< true when the vehicle is following the terrain height */
|
||||
bool _terrain_hold{false}; /**< true when vehicle is controlling height above a static ground position */
|
||||
|
||||
float _min_distance_to_ground{-INFINITY}; /**< min distance to ground constraint */
|
||||
float _max_distance_to_ground{INFINITY}; /**< max distance to ground constraint */
|
||||
float _min_distance_to_ground{(float)(-INFINITY)}; /**< min distance to ground constraint */
|
||||
float _max_distance_to_ground{(float)INFINITY}; /**< max distance to ground constraint */
|
||||
|
||||
/**
|
||||
* Distance to ground during terrain following.
|
||||
|
||||
Reference in New Issue
Block a user