mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 01:53:33 +08:00
Failure detector - change snake_case function names to camelCase
This commit is contained in:
@@ -52,13 +52,13 @@ FailureDetector::update()
|
||||
{
|
||||
bool updated(false);
|
||||
|
||||
updated = update_attitude_status();
|
||||
updated = updateAttitudeStatus();
|
||||
|
||||
return updated;
|
||||
}
|
||||
|
||||
bool
|
||||
FailureDetector::update_attitude_status()
|
||||
FailureDetector::updateAttitudeStatus()
|
||||
{
|
||||
bool updated(false);
|
||||
|
||||
|
||||
@@ -70,8 +70,8 @@ public:
|
||||
|
||||
bool update();
|
||||
|
||||
uint8_t get_status() const { return _status; }
|
||||
bool is_failure() const { return (_status == FAILURE_NONE) ? false : true; }
|
||||
uint8_t getStatus() const { return _status; }
|
||||
bool isFailure() const { return (_status == FAILURE_NONE) ? false : true; }
|
||||
|
||||
private:
|
||||
|
||||
@@ -91,5 +91,5 @@ private:
|
||||
systemlib::Hysteresis _roll_failure_hysteresis{false};
|
||||
systemlib::Hysteresis _pitch_failure_hysteresis{false};
|
||||
|
||||
bool update_attitude_status();
|
||||
bool updateAttitudeStatus();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user