mirror of https://github.com/ArduPilot/ardupilot
24 lines
639 B
C++
24 lines
639 B
C++
#pragma once
|
|
|
|
#include <AP_Arming/AP_Arming.h>
|
|
|
|
class AP_Arming_Sub : public AP_Arming {
|
|
public:
|
|
|
|
AP_Arming_Sub() : AP_Arming() { }
|
|
|
|
/* Do not allow copies */
|
|
AP_Arming_Sub(const AP_Arming_Sub &other) = delete;
|
|
AP_Arming_Sub &operator=(const AP_Arming_Sub&) = delete;
|
|
|
|
bool rc_calibration_checks(bool display_failure) override;
|
|
bool pre_arm_checks(bool display_failure) override;
|
|
bool has_disarm_function() const;
|
|
|
|
bool disarm(AP_Arming::Method method) override;
|
|
bool arm(AP_Arming::Method method, bool do_arming_checks=true) override;
|
|
|
|
protected:
|
|
bool ins_checks(bool display_failure) override;
|
|
};
|