Skip to content

Commit 56f3d0f

Browse files
committed
Format
1 parent 2df8780 commit 56f3d0f

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/sensors/icm20948sensor.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,8 @@
3131
// saved to NVS. Increments through the list then stops; to prevent unwelcome eeprom
3232
// wear.
3333
int bias_save_periods[]
34-
= {120,
35-
180,
36-
300,
37-
600,
38-
600}; // 2min + 3min + 5min + 10min + 10min (no more saves after 30min)
34+
= {120, 180, 300, 600, 600
35+
}; // 2min + 3min + 5min + 10min + 10min (no more saves after 30min)
3936

4037
#define ACCEL_SENSITIVITY_4G 8192.0f
4138

src/sensors/softfusion/softfusionsensor.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ class SoftFusionSensor : public Sensor {
136136
),
137137
static_cast<sensor_real_t>(
138138
GScale * (static_cast<sensor_real_t>(xyz[2]) - m_calibration.G_off[2])
139-
)};
139+
)
140+
};
140141
m_fusion.updateGyro(scaledData, m_calibration.G_Ts);
141142
}
142143

@@ -636,7 +637,8 @@ class SoftFusionSensor : public Sensor {
636637
.G_Ts = imu::GyrTs,
637638
.M_Ts = imu::MagTs,
638639
.G_Sens = {1.0, 1.0, 1.0},
639-
.MotionlessData = {}};
640+
.MotionlessData = {}
641+
};
640642

641643
SensorStatus m_status = SensorStatus::SENSOR_OFFLINE;
642644
uint32_t m_lastPollTime = micros();

0 commit comments

Comments
 (0)