Skip to content

Commit

Permalink
Fixed formatting for clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
bsutherland333 committed Dec 15, 2023
1 parent 591303c commit 48316d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions test/command_manager_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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);
}

Expand All @@ -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);
}

Expand All @@ -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);
}

Expand Down
13 changes: 7 additions & 6 deletions test/test_board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -197,7 +198,7 @@ bool testBoard::sonar_present()
{
return false;
}
bool testBoard::sonar_has_new_data()
bool testBoard::sonar_has_new_data()
{
return false;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 48316d4

Please sign in to comment.