Skip to content

Commit

Permalink
Fix compilation errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirenliel committed Jan 24, 2025
1 parent 140177c commit e801318
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/sensors/SensorManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class SensorManager {

void update();

std::vector<std::unique_ptr<Sensor>>& getSensors() { return m_Sensors; };
std::vector<std::unique_ptr<::Sensor>>& getSensors() { return m_Sensors; };
ImuID getSensorType(size_t id) {
if (id < m_Sensors.size()) {
return m_Sensors[id]->getSensorType();
Expand All @@ -64,10 +64,10 @@ class SensorManager {
private:
SlimeVR::Logging::Logger m_Logger;

std::vector<std::unique_ptr<Sensor>> m_Sensors;
std::vector<std::unique_ptr<::Sensor>> m_Sensors;

template <typename ImuType>
std::unique_ptr<Sensor> buildSensor(
std::unique_ptr<::Sensor> buildSensor(
uint8_t sensorID,
std::optional<uint8_t> imuAddress,
float rotation,
Expand Down
2 changes: 1 addition & 1 deletion src/sensors/softfusion/CalibrationBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ class CalibrationBase {

Sensors::SensorFusionRestDetect& fusion;
IMU& sensor;
SlimeVR::Logging::Logger& logger;
uint8_t sensorId;
SlimeVR::Logging::Logger& logger;
float TempTs;
double AScale;
double GScale;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ class NonBlockingCalibrator
sensor
};
GyroBiasCalibrationStep<RawSensorT> gyroBiasCalibrationStep{calibration};
AccelBiasCalibrationStep<RawSensorT> accelBiasCalibrationStep{calibration, AScale};
AccelBiasCalibrationStep<RawSensorT> accelBiasCalibrationStep{calibration, static_cast<float>(Base::AScale)};
NullCalibrationStep<RawSensorT> nullCalibrationStep{calibration};

CalibrationStep<RawSensorT>* currentStep = &nullCalibrationStep;
Expand Down

0 comments on commit e801318

Please sign in to comment.