2017-02-27 17:12:56 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_Arming/AP_Arming.h>
|
|
|
|
|
|
|
|
class AP_Arming_Sub : public AP_Arming {
|
|
|
|
public:
|
2018-06-25 02:26:41 -03:00
|
|
|
|
|
|
|
AP_Arming_Sub() : AP_Arming() { }
|
2017-02-27 17:12:56 -04:00
|
|
|
|
2017-08-30 17:25:42 -03:00
|
|
|
/* Do not allow copies */
|
|
|
|
AP_Arming_Sub(const AP_Arming_Sub &other) = delete;
|
2018-03-05 16:29:05 -04:00
|
|
|
AP_Arming_Sub &operator=(const AP_Arming_Sub&) = delete;
|
2017-08-30 17:25:42 -03:00
|
|
|
|
2018-06-28 12:14:43 -03:00
|
|
|
bool rc_calibration_checks(bool display_failure) override;
|
|
|
|
bool pre_arm_checks(bool display_failure) override;
|
2017-03-01 00:05:51 -04:00
|
|
|
|
2019-05-03 21:14:56 -03:00
|
|
|
bool disarm() override;
|
|
|
|
bool arm(AP_Arming::Method method, bool do_arming_checks=true) override;
|
|
|
|
|
2017-02-27 17:12:56 -04:00
|
|
|
protected:
|
2018-06-28 12:14:43 -03:00
|
|
|
bool ins_checks(bool display_failure) override;
|
2017-02-27 17:12:56 -04:00
|
|
|
};
|