mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 03:23:34 +08:00
Failure detector - change snake_case function names to camelCase
This commit is contained in:
@@ -2210,7 +2210,7 @@ Commander::run()
|
||||
|
||||
if (failure_detector_updated) {
|
||||
|
||||
const uint8_t failure_status = _failure_detector.get_status();
|
||||
const uint8_t failure_status = _failure_detector.getStatus();
|
||||
|
||||
if (failure_status != status.failure_detector_status) {
|
||||
status.failure_detector_status = failure_status;
|
||||
@@ -2223,7 +2223,7 @@ Commander::run()
|
||||
!_flight_termination_triggered &&
|
||||
!status_flags.circuit_breaker_flight_termination_disabled) {
|
||||
|
||||
if (_failure_detector.is_failure()) {
|
||||
if (_failure_detector.isFailure()) {
|
||||
|
||||
armed.force_failsafe = true;
|
||||
status_changed = true;
|
||||
|
||||
@@ -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