diff --git a/include/sensors.h b/include/sensors.h index a643f449..7e04b4dc 100644 --- a/include/sensors.h +++ b/include/sensors.h @@ -43,7 +43,6 @@ namespace rosflight_firmware { - typedef struct { bool imu; diff --git a/src/comm_manager.cpp b/src/comm_manager.cpp index b5042deb..8e895fef 100644 --- a/src/comm_manager.cpp +++ b/src/comm_manager.cpp @@ -593,7 +593,9 @@ void CommManager::send_next_param(void) } CommManager::Stream::Stream(uint32_t period_us, std::function send_function) : - period_us_(period_us), next_time_us_(0), send_function_(send_function) + period_us_(period_us), + next_time_us_(0), + send_function_(send_function) { } diff --git a/test/command_manager_test.cpp b/test/command_manager_test.cpp index 8da8b1f8..31b8462e 100644 --- a/test/command_manager_test.cpp +++ b/test/command_manager_test.cpp @@ -151,7 +151,7 @@ TEST_F(CommandManagerTest, ArmWithSwitch) rf.params_.set_param_int(PARAM_RC_ARM_CHANNEL, 4); rc_values[2] = 1000; // throttle low rc_values[4] = CHN_HIGH; // switch on - stepFirmware(50000); // Immediate + stepFirmware(50000); // Immediate EXPECT_EQ(rf.state_manager_.state().armed, true); } @@ -160,7 +160,7 @@ TEST_F(CommandManagerTest, DisarmWithStick) rf.params_.set_param_int(PARAM_RC_ARM_CHANNEL, 4); rf.state_manager_.set_event(StateManager::EVENT_REQUEST_ARM); rc_values[4] = CHN_LOW; // throttle low - stepFirmware(50000); // Immediate + stepFirmware(50000); // Immediate EXPECT_EQ(rf.state_manager_.state().armed, false); } @@ -185,7 +185,7 @@ TEST_F(CommandManagerTest, ArmStickReversed) rf.params_.set_param_int(PARAM_RC_ARM_CHANNEL, 4); rc_values[2] = 1000; // throttle low rc_values[4] = CHN_LOW; // switch on - stepFirmware(50000); // Immediate + stepFirmware(50000); // Immediate EXPECT_EQ(rf.state_manager_.state().armed, true); } @@ -198,7 +198,7 @@ TEST_F(CommandManagerTest, DisarmStickReversed) rc_values[2] = 1000; // throttle low rc_values[4] = CHN_HIGH; // switch on - stepFirmware(50000); // Immediate + stepFirmware(50000); // Immediate EXPECT_EQ(rf.state_manager_.state().armed, false); } diff --git a/test/test_board.cpp b/test/test_board.cpp index d29b0ba3..152f6150 100644 --- a/test/test_board.cpp +++ b/test/test_board.cpp @@ -163,7 +163,8 @@ bool testBoard::mag_has_new_data() { return false; } -bool testBoard::mag_read(float mag[3]) { +bool testBoard::mag_read(float mag[3]) +{ return false; } @@ -175,7 +176,7 @@ bool testBoard::baro_has_new_data() { return false; } -bool testBoard::baro_read(float *pressure, float *temperature) +bool testBoard::baro_read(float *pressure, float *temperature) { return false; } @@ -184,11 +185,11 @@ bool testBoard::diff_pressure_present() { return false; } -bool testBoard::diff_pressure_has_new_data() +bool testBoard::diff_pressure_has_new_data() { return false; } -bool testBoard::diff_pressure_read(float *diff_pressure, float *temperature) +bool testBoard::diff_pressure_read(float *diff_pressure, float *temperature) { return false; } @@ -197,7 +198,7 @@ bool testBoard::sonar_present() { return false; } -bool testBoard::sonar_has_new_data() +bool testBoard::sonar_has_new_data() { return false; } @@ -214,7 +215,7 @@ bool testBoard::gnss_has_new_data() { return false; } -bool testBoard::gnss_read(GNSSData *gnss, GNSSFull *gnss_full) +bool testBoard::gnss_read(GNSSData *gnss, GNSSFull *gnss_full) { return false; }