2016-08-17 01:28:16 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AP_Arming/AP_Arming.h>
|
2017-08-16 07:02:56 -03:00
|
|
|
#include <AC_Fence/AC_Fence.h>
|
2016-08-17 01:28:16 -03:00
|
|
|
|
|
|
|
/*
|
|
|
|
a rover-specific arming class
|
|
|
|
*/
|
|
|
|
class AP_Arming_Rover : public AP_Arming
|
|
|
|
{
|
|
|
|
public:
|
2018-06-25 02:26:31 -03:00
|
|
|
|
|
|
|
AP_Arming_Rover() : AP_Arming() { }
|
2016-08-17 01:28:16 -03:00
|
|
|
|
2017-08-30 17:25:42 -03:00
|
|
|
/* Do not allow copies */
|
|
|
|
AP_Arming_Rover(const AP_Arming_Rover &other) = delete;
|
2018-03-05 16:28:23 -04:00
|
|
|
AP_Arming_Rover &operator=(const AP_Arming_Rover&) = delete;
|
2017-08-30 17:25:42 -03:00
|
|
|
|
2017-12-09 02:54:47 -04:00
|
|
|
bool pre_arm_checks(bool report) override;
|
2019-05-05 22:15:32 -03:00
|
|
|
bool arm_checks(AP_Arming::Method method) override;
|
2019-07-23 21:13:31 -03:00
|
|
|
bool rc_calibration_checks(const bool display_failure) override;
|
2017-11-29 02:30:37 -04:00
|
|
|
bool gps_checks(bool display_failure) override;
|
2017-06-30 15:48:35 -03:00
|
|
|
|
2019-05-03 09:32:42 -03:00
|
|
|
bool disarm() override;
|
|
|
|
bool arm(AP_Arming::Method method, bool do_arming_checks=true) override;
|
|
|
|
|
|
|
|
void update_soft_armed();
|
|
|
|
|
2016-08-17 01:28:16 -03:00
|
|
|
protected:
|
2019-05-10 02:59:52 -03:00
|
|
|
bool oa_check(bool report);
|
2017-08-16 07:02:56 -03:00
|
|
|
|
|
|
|
private:
|
2018-06-25 02:26:31 -03:00
|
|
|
|
2019-05-03 09:32:42 -03:00
|
|
|
void change_arm_state(void);
|
2016-08-17 01:28:16 -03:00
|
|
|
};
|