2017-01-09 03:56:56 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_Arming/AP_Arming.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
a plane specific arming class
|
|
|
|
*/
|
|
|
|
class AP_Arming_Plane : public AP_Arming
|
|
|
|
{
|
|
|
|
public:
|
2018-06-25 02:44:04 -03:00
|
|
|
AP_Arming_Plane()
|
|
|
|
: AP_Arming()
|
2017-12-12 21:06:15 -04:00
|
|
|
{
|
|
|
|
AP_Param::setup_object_defaults(this, var_info);
|
|
|
|
}
|
|
|
|
|
2017-08-30 16:48:12 -03:00
|
|
|
/* Do not allow copies */
|
|
|
|
AP_Arming_Plane(const AP_Arming_Plane &other) = delete;
|
2018-03-05 16:28:49 -04:00
|
|
|
AP_Arming_Plane &operator=(const AP_Arming_Plane&) = delete;
|
2017-08-30 16:48:12 -03:00
|
|
|
|
2019-04-21 22:12:12 -03:00
|
|
|
bool pre_arm_checks(bool report) override;
|
|
|
|
bool arm_checks(AP_Arming::Method method) override;
|
2017-01-09 03:56:56 -04:00
|
|
|
|
|
|
|
// var_info for holding Parameter information
|
|
|
|
static const struct AP_Param::GroupInfo var_info[];
|
|
|
|
|
2020-02-21 09:09:58 -04:00
|
|
|
bool disarm(AP_Arming::Method method) override;
|
2019-05-03 20:35:12 -03:00
|
|
|
bool arm(AP_Arming::Method method, bool do_arming_checks=true) override;
|
|
|
|
|
|
|
|
void update_soft_armed();
|
|
|
|
|
2017-01-09 03:56:56 -04:00
|
|
|
protected:
|
2019-04-21 22:12:12 -03:00
|
|
|
bool ins_checks(bool report) override;
|
2017-01-09 03:56:56 -04:00
|
|
|
|
2019-05-03 20:35:12 -03:00
|
|
|
private:
|
|
|
|
void change_arm_state(void);
|
2017-01-09 03:56:56 -04:00
|
|
|
};
|