Rover: move checking of fence up

This commit is contained in:
Peter Barker 2019-03-06 10:10:09 +11:00 committed by Randy Mackay
parent 7bdd2eb755
commit a38092e220
2 changed files with 0 additions and 14 deletions

View File

@ -84,19 +84,6 @@ bool AP_Arming_Rover::pre_arm_checks(bool report)
& proximity_check(report));
}
bool AP_Arming_Rover::fence_checks(bool report)
{
// check fence is initialised
const char *fail_msg = nullptr;
if (!rover.g2.fence.pre_arm_check(fail_msg)) {
if (report && fail_msg != nullptr) {
gcs().send_text(MAV_SEVERITY_CRITICAL, "PreArm: Fence : %s", fail_msg);
}
return false;
}
return true;
}
// check nothing is too close to vehicle
bool AP_Arming_Rover::proximity_check(bool report)
{

View File

@ -21,7 +21,6 @@ public:
bool gps_checks(bool display_failure) override;
protected:
bool fence_checks(bool report);
bool proximity_check(bool report);
private: