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 */
|
2022-09-30 06:50:43 -03:00
|
|
|
CLASS_NO_COPY(AP_Arming_Sub);
|
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;
|
2019-08-01 00:24:21 -03:00
|
|
|
bool has_disarm_function() const;
|
2017-03-01 00:05:51 -04:00
|
|
|
|
2021-01-05 20:15:48 -04:00
|
|
|
bool disarm(AP_Arming::Method method, bool do_disarm_checks=true) override;
|
2019-05-03 21:14:56 -03:00
|
|
|
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
|
|
|
};
|