2017-02-27 17:12:56 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_Arming/AP_Arming.h>
|
|
|
|
|
|
|
|
class AP_Arming_Sub : public AP_Arming {
|
|
|
|
public:
|
2017-08-30 17:25:42 -03:00
|
|
|
static AP_Arming_Sub create(const AP_AHRS &ahrs_ref, const AP_Baro &baro, Compass &compass, const AP_BattMonitor &battery) {
|
|
|
|
return AP_Arming_Sub{ahrs_ref, baro, compass, battery};
|
2017-02-27 17:12:56 -04:00
|
|
|
}
|
|
|
|
|
2017-08-30 17:25:42 -03:00
|
|
|
constexpr AP_Arming_Sub(AP_Arming_Sub &&other) = default;
|
|
|
|
|
|
|
|
/* Do not allow copies */
|
|
|
|
AP_Arming_Sub(const AP_Arming_Sub &other) = delete;
|
|
|
|
AP_Arming_Sub &operator=(const AP_Baro&) = delete;
|
|
|
|
|
2017-03-01 00:05:51 -04:00
|
|
|
bool rc_check(bool report=true);
|
|
|
|
bool pre_arm_checks(bool report) override;
|
|
|
|
|
2017-02-27 17:12:56 -04:00
|
|
|
protected:
|
2017-08-30 17:25:42 -03:00
|
|
|
AP_Arming_Sub(const AP_AHRS &ahrs_ref, const AP_Baro &baro, Compass &compass,
|
|
|
|
const AP_BattMonitor &battery)
|
|
|
|
: AP_Arming(ahrs_ref, baro, compass, battery)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2017-04-14 17:37:36 -03:00
|
|
|
bool ins_checks(bool report) override;
|
2017-02-27 17:12:56 -04:00
|
|
|
enum HomeState home_status() const override;
|
|
|
|
};
|