simulator: fix conversion from hPa to Pa

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst
2022-03-29 17:41:54 +03:00
committed by Roman Bapst
parent 8a552fac78
commit 18074dec5a
2 changed files with 5 additions and 3 deletions
+2
View File
@@ -161,6 +161,8 @@ private:
static Simulator *_instance;
static constexpr float hPa2Pa = 100.0f; // hectopascal to pascal multiplier
// simulated sensor instances
static constexpr uint8_t ACCEL_COUNT_MAX = 3;
PX4Accelerometer _px4_accel[ACCEL_COUNT_MAX] {