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:
Silvan Fuhrer
2023-09-20 15:45:32 +02:00
committed by GitHub
parent 7ff00db9c5
commit ec7db4b30d
2 changed files with 20 additions and 5 deletions
@@ -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};