mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 12:53:35 +08:00
clang-tidy modernize-redundant-void-arg
This commit is contained in:
@@ -793,7 +793,7 @@ calibrate_return calibrate_from_orientation(orb_advert_t *mavlink_log_pub,
|
||||
return result;
|
||||
}
|
||||
|
||||
int calibrate_cancel_subscribe(void)
|
||||
int calibrate_cancel_subscribe()
|
||||
{
|
||||
return orb_subscribe(ORB_ID(vehicle_command));
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ public:
|
||||
StateMachineHelperTest();
|
||||
virtual ~StateMachineHelperTest();
|
||||
|
||||
virtual bool run_tests(void);
|
||||
virtual bool run_tests();
|
||||
|
||||
private:
|
||||
bool armingStateTransitionTest();
|
||||
@@ -63,7 +63,7 @@ StateMachineHelperTest::StateMachineHelperTest() {
|
||||
StateMachineHelperTest::~StateMachineHelperTest() {
|
||||
}
|
||||
|
||||
bool StateMachineHelperTest::armingStateTransitionTest(void)
|
||||
bool StateMachineHelperTest::armingStateTransitionTest()
|
||||
{
|
||||
// These are the critical values from vehicle_status_s and actuator_armed_s which must be primed
|
||||
// to simulate machine state prior to testing an arming state transition. This structure is also
|
||||
@@ -311,7 +311,7 @@ bool StateMachineHelperTest::armingStateTransitionTest(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool StateMachineHelperTest::mainStateTransitionTest(void)
|
||||
bool StateMachineHelperTest::mainStateTransitionTest()
|
||||
{
|
||||
// This structure represent a single test case for testing Main State transitions.
|
||||
typedef struct {
|
||||
@@ -475,7 +475,7 @@ bool StateMachineHelperTest::mainStateTransitionTest(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool StateMachineHelperTest::isSafeTest(void)
|
||||
bool StateMachineHelperTest::isSafeTest()
|
||||
{
|
||||
struct vehicle_status_s current_state = {};
|
||||
struct safety_s safety = {};
|
||||
@@ -514,7 +514,7 @@ bool StateMachineHelperTest::isSafeTest(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool StateMachineHelperTest::run_tests(void)
|
||||
bool StateMachineHelperTest::run_tests()
|
||||
{
|
||||
ut_run_test(armingStateTransitionTest);
|
||||
ut_run_test(mainStateTransitionTest);
|
||||
|
||||
Reference in New Issue
Block a user