Peter Barker
527a536b78
Copter: FlightMode - remove function parameters
...
Use current control_mode in place of parameters
Once conversion is complete these functions will disappear
7 years ago
ChrisBird
1f1bb61bfa
Copter: Add PreArm - PID Parameter check
...
This addresses the enhancement requested in: https://github.com/ArduPilot/ardupilot/issues/2424
It checks various PID values to check if they are zero, if they are and the corresponding rate forward feed is zero then it flags it as PreArm failure.
It has been added to the parameter check, so can be overridden if required.
7 years ago
Peter Barker
3846da5e23
Copter: remove redundant terrain checks
...
Now taken care of by continuous prearm checks
7 years ago
Peter Barker
d537461934
Copter: remove redundant battery checks
...
Now taken care of by continuous prearm checks
7 years ago
Peter Barker
b3b1680e11
Copter: remove redundant fence checks
...
Now checked as part of continuous prearm
7 years ago
Peter Barker
04af1cb331
Copter: remove redundant baro checks
...
Now checked as part of continuous prearm checks
7 years ago
Peter Barker
b5c907312c
Copter: remove redundant gps checks
...
Now tested as part of continuous pre-arm checks
7 years ago
Peter Barker
d563a9dd5d
Copter: remove redundant INS checks
...
Now checked by continuous prearm checks
7 years ago
Peter Barker
d3b73f8557
Copter: correct notification of pre-arm-gps-check failure
7 years ago
Peter Barker
818faa92d4
Copter: rc calibration checks are called by AP_Arming
7 years ago
Peter Barker
9b52c9b670
Copter: prearm logging checks are called in parent class
7 years ago
Peter Barker
49dd5f4f80
Copter: prearm board voltage checks are called in parent class
7 years ago
Peter Barker
b8802ec5c2
Copter: prearm gps checks are called in parent class
7 years ago
Peter Barker
7c0869fa19
Copter: prearm ins checks are called in parent class
7 years ago
Peter Barker
cb8fa41cb1
Copter: prearm compass checks are called in parent class
7 years ago
Peter Barker
30c1a040d7
Copter: prearm baro checks are called in parent class
7 years ago
Peter Barker
c129445ff6
Copter: call common prearm checks
7 years ago
Peter Barker
7b3e111f85
Copter: continuously run pre-arm checks
...
Stop "latching" the prearm checks, so if the checks start to fail
the craft becomes non-armable.
7 years ago
Peter Barker
b0c7766197
Copter: continuously reevaluate rc calibration checks
...
Stop "latching" calibration checks - if an RC radio's calibration
changes after it passes once, these patches allow the rc calibraiton
checks to then fail.
8 years ago
Peter Barker
0a2177de58
Copter: move Copter RC checking code into library
8 years ago
Randy Mackay
167ced1279
Copter: battery arming checks call parent AP_Arming
8 years ago
Randy Mackay
f97e43919b
Copter: add gps glitch notification and pre-arm check
8 years ago
Peter Barker
89478d5a28
Copter: ensure logging is working as part of arming checks
8 years ago
Peter Barker
e45efeb829
Copter: move starting of new logs into DataFlash
8 years ago
Peter Barker
cbde87b390
Copter: remove pointless pre_arm_gps_checks function
8 years ago
Peter Barker
baaad8df94
Copter: use common board_voltage_checks code
8 years ago
Peter Barker
a7bc111485
Copter: use common baro arming check function
8 years ago
Peter Barker
592729733e
Copter: eliminate GCS_MAVLINK::send_statustext_all
8 years ago
Tom Pittenger
25b014524a
Copter: use send_text method on the GCS singleton
8 years ago
Peter Barker
f60389d4aa
Copter: use send_text method on the GCS singleton
8 years ago
Randy Mackay
dfe3922d82
Copter: modify pre-arm check wording
...
- slight wording change to RC pre-arm check
- shorten Accelerometers to Accels to allow failure message to fit on MP HUD
8 years ago
Randy Mackay
bff9189afc
Copter: fixup fence pre-arm checks
...
- require GPS if polygon fence is enabled
- fence pre-arm failure shows failure message
- tell user fence is enabled which is why GPS is required
8 years ago
Lucas De Marchi
cc7633f272
ArduCopter: replace board ifdef with feature ifdef
8 years ago
Lucas De Marchi
b17acfee12
Add aerofc support
...
Flight Controller board that comes on Intel Aero RTF Drone.
8 years ago
Randy Mackay
b30d743812
Copter: AP_Arming calls parent's gps checks
...
Allows removing some duplicate code
8 years ago
Randy Mackay
51c00f8144
Copter: use only downward facing rangefinder
8 years ago
Peter Barker
01b1916de5
Copter: ensure logging is working as part of prearm
8 years ago
Peter Barker
e7d3219a58
Copter: check all channels have been configured, not just throttle
8 years ago
Peter Barker
ab13b3beaf
Copter: make rc checks verbose on failure
8 years ago
Peter Barker
078866046a
Copter: correct rc-arming checks concerning trims
...
Trims should always be between min and max
8 years ago
Randy Mackay
becc56da0b
Copter: AP_Arming internal references start with underscore
8 years ago
Randy Mackay
cc217550c0
Copter: rename arming_checks to AP_Arming
8 years ago
Randy Mackay
a52db9f29d
Copter: fix motors_checks to AP_Arming
8 years ago
Randy Mackay
ee9588c674
Copter: fix proximity arming checks
8 years ago
Randy Mackay
b89d3564c7
Copter: move set_pre_arm_check to arming_checks
8 years ago
Peter Barker
ac980fdd47
Copter: use compass_checks from AP_Arming
...
User-visible changes:
- checks will fail if calibration is in progress
- PX4FMU_V1 will now have COMPASS_OFFSETS_MAX of 600, not 500
- if the primary compass is not set to be used then compass checks will always pass
8 years ago
Peter Barker
f3a31b988a
Copter: use ins_checks from AP_Arming
...
Functionality changes:
- gyros and accels only have to be consistent in last 10 seconds to pass
- ins.use_accel() is honoured when checking for consistency
- ins.use_gyro() is honoured when checking for consistency
- threshold is trippled rather than doubled for accel cal checks
- checks are reordered
8 years ago
Peter Barker
bd6ffc025e
Copter: start conversion to AP_Arming_Copter
8 years ago
Andrew Tridgell
0f6d0c5ba9
Copter: combined tri, single, coax and multicopter into a single build
...
this allows copter to be just 2 builds, one for heli, and one for
everything else
8 years ago
Peter Barker
a233024e05
Copter: fix compilation when fence andd proximity are disabled
...
This adds AC_AVOID_ENABLED; avoidance must be disabled if either
of fence or proximity are disabled.
Parameter definitions have been reordered to avoid compiler warnings;
this make sthe numbering non-linear
8 years ago