mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 13:43:33 +08:00
FW Positon Controller: set references to 0 if not provided by local_position (#22101)
* FW Positon Controller: set altitude_ref to 0 if not provided by GPS Signed-off-by: Silvan Fuhrer <silvan@auterion.com> * FW Positon Controller: set lat/lon reference to 0 if not provided in local_position Signed-off-by: Silvan Fuhrer <silvan@auterion.com> --------- Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -266,7 +266,8 @@ private:
|
||||
float _body_velocity_x{0.f};
|
||||
|
||||
MapProjection _global_local_proj_ref{};
|
||||
float _global_local_alt0{NAN};
|
||||
|
||||
float _reference_altitude{NAN}; // [m AMSL] altitude of the local projection reference point
|
||||
|
||||
bool _landed{true};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user