AP_Arming_Sub.h 615 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <AP_Arming/AP_Arming.h>
  3. class AP_Arming_Sub : public AP_Arming {
  4. public:
  5. AP_Arming_Sub() : AP_Arming() { }
  6. /* Do not allow copies */
  7. AP_Arming_Sub(const AP_Arming_Sub &other) = delete;
  8. AP_Arming_Sub &operator=(const AP_Arming_Sub&) = delete;
  9. bool rc_calibration_checks(bool display_failure) override;
  10. bool pre_arm_checks(bool display_failure) override;
  11. bool has_disarm_function() const;
  12. bool disarm() override;
  13. bool arm(AP_Arming::Method method, bool do_arming_checks=true) override;
  14. protected:
  15. bool ins_checks(bool display_failure) override;
  16. };