mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-10 04:31:36 +08:00
simulator: fix conversion from hPa to Pa
Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
@@ -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] {
|
||||
|
||||
Reference in New Issue
Block a user