calibration params: avoid using NaN as default

- NaN is not supported by JSON, and leads to parsing failure in QGC.
 - fixes https://github.com/PX4/PX4-Autopilot/issues/18095
This commit is contained in:
Beat Küng
2021-08-19 11:29:26 -04:00
committed by GitHub
parent 507cce78d5
commit c4b91c8558
18 changed files with 72 additions and 18 deletions
@@ -92,6 +92,8 @@ public:
void SensorCorrectionsUpdate(bool force = false);
private:
static constexpr float TEMPERATURE_INVALID = -1000.f;
uORB::Subscription _sensor_correction_sub{ORB_ID(sensor_correction)};
Rotation _rotation_enum{ROTATION_NONE};