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
|
|
|
|
2020-02-21 09:09:57 -04:00
|
|
|
bool disarm(AP_Arming::Method method) override;
|
2019-05-03 09:32:42 -03:00
|
|
|
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-09-17 22:29:25 -03:00
|
|
|
// the following check functions do not call into AP_Arming
|
2019-05-10 02:59:52 -03:00
|
|
|
bool oa_check(bool report);
|
2019-09-17 22:29:25 -03:00
|
|
|
bool parameter_checks(bool report);
|
2020-02-06 06:07:10 -04:00
|
|
|
bool mode_checks(bool report);
|
2017-08-16 07:02:56 -03:00
|
|
|
|
2016-08-17 01:28:16 -03:00
|
|
|
};
|