CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Blimp/AP_Arming.h
Views: 1798
1
#pragma once
2
3
#include <AP_Arming/AP_Arming.h>
4
5
class AP_Arming_Blimp : public AP_Arming
6
{
7
public:
8
friend class Blimp;
9
friend class ToyMode;
10
11
AP_Arming_Blimp() : AP_Arming()
12
{
13
// default REQUIRE parameter to 1 (Blimp does not have an
14
// actual ARMING_REQUIRE parameter)
15
require.set_default((uint8_t)Required::YES_MIN_PWM);
16
}
17
18
/* Do not allow copies */
19
CLASS_NO_COPY(AP_Arming_Blimp);
20
21
bool rc_calibration_checks(bool display_failure) override;
22
23
bool disarm(AP_Arming::Method method, bool do_disarm_checks=true) override;
24
bool arm(AP_Arming::Method method, bool do_arming_checks=true) override;
25
26
protected:
27
28
bool pre_arm_checks(bool display_failure) override;
29
bool pre_arm_ekf_attitude_check();
30
bool arm_checks(AP_Arming::Method method) override;
31
32
// mandatory checks that cannot be bypassed. This function will only be called if ARMING_CHECK is zero or arming forced
33
bool mandatory_checks(bool display_failure) override;
34
35
// NOTE! the following check functions *DO* call into AP_Arming:
36
bool ins_checks(bool display_failure) override;
37
bool gps_checks(bool display_failure) override;
38
bool barometer_checks(bool display_failure) override;
39
bool board_voltage_checks(bool display_failure) override;
40
41
// NOTE! the following check functions *DO NOT* call into AP_Arming!
42
bool parameter_checks(bool display_failure);
43
bool motor_checks(bool display_failure);
44
bool oa_checks(bool display_failure);
45
bool mandatory_gps_checks(bool display_failure);
46
bool gcs_failsafe_check(bool display_failure);
47
bool alt_checks(bool display_failure);
48
49
void set_pre_arm_check(bool b);
50
51
private:
52
53
// actually contains the pre-arm checks. This is wrapped so that
54
// we can store away success/failure of the checks.
55
bool run_pre_arm_checks(bool display_failure);
56
57
};
58
59