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:
|
2017-12-12 21:06:15 -04:00
|
|
|
AP_Arming_Plane(const AP_AHRS &ahrs_ref, const AP_Baro &baro, Compass &compass,
|
|
|
|
const AP_BattMonitor &battery)
|
|
|
|
: AP_Arming(ahrs_ref, baro, compass, battery)
|
|
|
|
{
|
|
|
|
AP_Param::setup_object_defaults(this, var_info);
|
|
|
|
}
|
|
|
|
|
2017-01-09 04:00:21 -04:00
|
|
|
enum ArmingRudder {
|
|
|
|
ARMING_RUDDER_DISABLED = 0,
|
|
|
|
ARMING_RUDDER_ARMONLY = 1,
|
|
|
|
ARMING_RUDDER_ARMDISARM = 2
|
|
|
|
};
|
|
|
|
|
2017-08-30 16:48:12 -03:00
|
|
|
/* Do not allow copies */
|
|
|
|
AP_Arming_Plane(const AP_Arming_Plane &other) = delete;
|
|
|
|
AP_Arming_Plane &operator=(const AP_Baro&) = delete;
|
|
|
|
|
2017-01-09 03:56:56 -04:00
|
|
|
bool pre_arm_checks(bool report);
|
|
|
|
|
2017-01-09 04:00:21 -04:00
|
|
|
ArmingRudder rudder_arming() const { return (ArmingRudder)rudder_arming_value.get(); }
|
|
|
|
|
2017-01-09 03:56:56 -04:00
|
|
|
// var_info for holding Parameter information
|
|
|
|
static const struct AP_Param::GroupInfo var_info[];
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool ins_checks(bool report);
|
|
|
|
enum HomeState home_status() const override;
|
|
|
|
|
|
|
|
// parameters
|
|
|
|
AP_Int8 rudder_arming_value;
|
|
|
|
};
|