Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
gorbit99 committed Jan 24, 2025
1 parent 22d1722 commit b2985d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 2 additions & 5 deletions src/sensors/icm20948sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@
// saved to NVS. Increments through the list then stops; to prevent unwelcome eeprom
// wear.
int bias_save_periods[]
= {120,
180,
300,
600,
600}; // 2min + 3min + 5min + 10min + 10min (no more saves after 30min)
= {120, 180, 300, 600, 600
}; // 2min + 3min + 5min + 10min + 10min (no more saves after 30min)

#define ACCEL_SENSITIVITY_4G 8192.0f

Expand Down
6 changes: 4 additions & 2 deletions src/sensors/softfusion/softfusionsensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ class SoftFusionSensor : public Sensor {
),
static_cast<sensor_real_t>(
GScale * (static_cast<sensor_real_t>(xyz[2]) - m_calibration.G_off[2])
)};
)
};
m_fusion.updateGyro(scaledData, m_calibration.G_Ts);
}

Expand Down Expand Up @@ -609,7 +610,8 @@ class SoftFusionSensor : public Sensor {
.G_Ts = imu::GyrTs,
.M_Ts = imu::MagTs,
.G_Sens = {1.0, 1.0, 1.0},
.MotionlessData = {}};
.MotionlessData = {}
};

SensorStatus m_status = SensorStatus::SENSOR_OFFLINE;
uint32_t m_lastPollTime = micros();
Expand Down

0 comments on commit b2985d4

Please sign in to comment.