forked from ArduPilot/ardupilot
-
Notifications
You must be signed in to change notification settings - Fork 25
/
AP_Arming.h
36 lines (27 loc) · 1003 Bytes
/
AP_Arming.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include <AP_Arming/AP_Arming.h>
#include <AC_Fence/AC_Fence.h>
/*
a rover-specific arming class
*/
class AP_Arming_Rover : public AP_Arming
{
public:
AP_Arming_Rover() : AP_Arming() { }
/* Do not allow copies */
AP_Arming_Rover(const AP_Arming_Rover &other) = delete;
AP_Arming_Rover &operator=(const AP_Arming_Rover&) = delete;
bool pre_arm_checks(bool report) override;
bool arm_checks(AP_Arming::Method method) override;
bool rc_calibration_checks(const bool display_failure) override;
bool gps_checks(bool display_failure) override;
bool disarm(AP_Arming::Method method, bool do_disarm_checks=true) override;
bool arm(AP_Arming::Method method, bool do_arming_checks=true) override;
void update_soft_armed();
protected:
// the following check functions do not call into AP_Arming
bool oa_check(bool report);
bool parameter_checks(bool report);
bool mode_checks(bool report);
bool motor_checks(bool report);
};