Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gorbit99 committed Jan 4, 2025
1 parent 0879141 commit ed40124
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/sensors/SensorManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
#include "sensoraddresses.h"
#include "softfusion/drivers/bmi270.h"
#include "softfusion/drivers/icm42688.h"
#include "softfusion/drivers/icm45605.h"
#include "softfusion/drivers/icm45686.h"
#include "softfusion/drivers/lsm6ds3trc.h"
#include "softfusion/drivers/lsm6dso.h"
#include "softfusion/drivers/lsm6dsr.h"
#include "softfusion/drivers/lsm6dsv.h"
#include "softfusion/drivers/mpu6050.h"
#include "softfusion/drivers/icm45686.h"
#include "softfusion/drivers/icm45605.h"
#include "softfusion/i2cimpl.h"
#include "softfusion/softfusionsensor.h"

Expand Down
4 changes: 1 addition & 3 deletions src/sensors/softfusion/drivers/icm45605.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ struct ICM45605 : public ICM45Base<I2CImpl> {
};
};

float getDirectTemp() const {
return ICM45Base<I2CImpl>::getDirectTemp();
}
float getDirectTemp() const { return ICM45Base<I2CImpl>::getDirectTemp(); }

bool initialize() {
ICM45Base<I2CImpl>::softResetIMU();
Expand Down
4 changes: 1 addition & 3 deletions src/sensors/softfusion/drivers/icm45686.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ struct ICM45686 : public ICM45Base<I2CImpl> {
};
};

float getDirectTemp() const {
return ICM45Base<I2CImpl>::getDirectTemp();
}
float getDirectTemp() const { return ICM45Base<I2CImpl>::getDirectTemp(); }

using ICM45Base<I2CImpl>::i2c;

Expand Down
5 changes: 1 addition & 4 deletions src/sensors/softfusion/drivers/icm45base.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,7 @@ struct ICM45Base {
}

template <typename AccelCall, typename GyroCall>
void bulkRead(
AccelCall&& processAccelSample,
GyroCall&& processGyroSample
) {
void bulkRead(AccelCall&& processAccelSample, GyroCall&& processGyroSample) {
const auto fifo_packets = i2c.readReg16(BaseRegs::FifoCount);
const auto fifo_bytes = fifo_packets * sizeof(FullFifoEntrySize);

Expand Down
7 changes: 4 additions & 3 deletions src/sensors/softfusion/softfusionsensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,10 @@ class SoftFusionSensor : public Sensor {
uint32_t currentTime;
while ((currentTime = millis()) < calibTarget) {
m_sensor.bulkRead(
[&accelSamples](const RawSensorT xyz[3], const sensor_real_t timeDelta) {
accelSamples++;
},
[&accelSamples](
const RawSensorT xyz[3],
const sensor_real_t timeDelta
) { accelSamples++; },
[&gyroSamples](const RawSensorT xyz[3], const sensor_real_t timeDelta) {
gyroSamples++;
}
Expand Down

0 comments on commit ed40124

Please sign in to comment.