Commit Graph

52 Commits

Author SHA1 Message Date
Ebin 185f41d5bd Copter arm_checks(): PreArm in error msg changed to Arm 2018-03-16 09:49:54 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas b27c00dc5f Copter: add option to disable ACRO mode 2018-03-15 07:38:14 +09:00
Andrew Tridgell 30572692c4 Copter: added ALLOW_ARM_NO_COMPASS
for skyviper-f412
2018-03-02 12:52:50 +11:00
Dr.-Ing. Amilcar Do Carmo Lucas def098bd8a Copter: obey ADSB_ENABLED == DISABLED 2018-02-21 22:11:34 +09:00
Randy Mackay 0f6762bbd2 Copter: PSC_ACCZ param name shortened 2018-01-31 08:48:21 +09:00
Randy Mackay 8d6f8e4d9c Copter: move pos-control pids to pos-control library 2018-01-23 12:00:43 +09:00
Peter Barker 077b062701 Copter: change pre-arm checks to allow interlock to be enabled
With this change we will continue to tell the user their interlock is
enabled, but we will not fail the pre-arm checks.

This will mean that the blinking-LED indicators will show the vehicle as
armable (flashing green / flashing blue), even if the interlock would
prevent arming.

This has the advantage that you don't need your vehicle in the
"dangerous" state to work out whether arming will work when you attempt
to arm it.

Note that we repeat the interlock switch check in the arming checks, and
it WILL fail if the interlock switch is enabled.
2018-01-09 08:13:06 +09:00
Peter Barker 7b637334f4 Copter: eliminate mode_has_manual_throttle 2017-12-06 10:09:58 +09:00
Peter Barker ef1489e87a Copter: eliminate mode_requires_gps 2017-12-06 08:24:24 +09:00
Peter Barker a4859e13c1 Copter: eliminate mode_allows_arming 2017-12-06 08:24:24 +09:00
Peter Barker 527a536b78 Copter: FlightMode - remove function parameters
Use current control_mode in place of parameters

Once conversion is complete these functions will disappear
2017-12-06 08:24:24 +09:00
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.
2017-11-15 21:58:24 +09:00
Peter Barker 3846da5e23 Copter: remove redundant terrain checks
Now taken care of by continuous prearm checks
2017-11-08 19:08:16 +09:00
Peter Barker d537461934 Copter: remove redundant battery checks
Now taken care of by continuous prearm checks
2017-11-08 19:08:14 +09:00
Peter Barker b3b1680e11 Copter: remove redundant fence checks
Now checked as part of continuous prearm
2017-11-08 19:08:12 +09:00
Peter Barker 04af1cb331 Copter: remove redundant baro checks
Now checked as part of continuous prearm checks
2017-11-08 19:08:10 +09:00
Peter Barker b5c907312c Copter: remove redundant gps checks
Now tested as part of continuous pre-arm checks
2017-11-08 19:08:08 +09:00
Peter Barker d563a9dd5d Copter: remove redundant INS checks
Now checked by continuous prearm checks
2017-11-08 19:08:06 +09:00
Peter Barker d3b73f8557 Copter: correct notification of pre-arm-gps-check failure 2017-11-08 19:08:03 +09:00
Peter Barker 818faa92d4 Copter: rc calibration checks are called by AP_Arming 2017-11-08 19:07:59 +09:00
Peter Barker 9b52c9b670 Copter: prearm logging checks are called in parent class 2017-11-08 19:07:55 +09:00
Peter Barker 49dd5f4f80 Copter: prearm board voltage checks are called in parent class 2017-11-08 19:07:53 +09:00
Peter Barker b8802ec5c2 Copter: prearm gps checks are called in parent class 2017-11-08 19:07:51 +09:00
Peter Barker 7c0869fa19 Copter: prearm ins checks are called in parent class 2017-11-08 19:07:49 +09:00
Peter Barker cb8fa41cb1 Copter: prearm compass checks are called in parent class 2017-11-08 19:07:46 +09:00
Peter Barker 30c1a040d7 Copter: prearm baro checks are called in parent class 2017-11-08 19:07:44 +09:00
Peter Barker c129445ff6 Copter: call common prearm checks 2017-11-08 19:07:42 +09:00
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.
2017-11-08 19:02:44 +09:00
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.
2017-08-21 09:05:31 +09:00
Peter Barker 0a2177de58 Copter: move Copter RC checking code into library 2017-08-14 15:32:25 +09:00
Randy Mackay 167ced1279 Copter: battery arming checks call parent AP_Arming 2017-07-31 17:19:55 +09:00
Randy Mackay f97e43919b Copter: add gps glitch notification and pre-arm check 2017-07-27 14:16:23 +09:00
Peter Barker 89478d5a28 Copter: ensure logging is working as part of arming checks 2017-07-19 16:37:28 +01:00
Peter Barker e45efeb829 Copter: move starting of new logs into DataFlash 2017-07-19 16:37:28 +01:00
Peter Barker cbde87b390 Copter: remove pointless pre_arm_gps_checks function 2017-07-19 16:34:57 +01:00
Peter Barker baaad8df94 Copter: use common board_voltage_checks code 2017-07-19 16:34:57 +01:00
Peter Barker a7bc111485 Copter: use common baro arming check function 2017-07-19 16:34:57 +01:00
Peter Barker 592729733e Copter: eliminate GCS_MAVLINK::send_statustext_all 2017-07-11 23:53:53 +01:00
Tom Pittenger 25b014524a Copter: use send_text method on the GCS singleton 2017-07-09 19:03:26 -04:00
Peter Barker f60389d4aa Copter: use send_text method on the GCS singleton 2017-07-09 17:17:29 -04:00
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
2017-03-25 10:50:58 +09:00
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
2017-03-25 10:50:58 +09:00
Lucas De Marchi cc7633f272 ArduCopter: replace board ifdef with feature ifdef 2017-03-24 12:06:19 +11:00
Lucas De Marchi b17acfee12 Add aerofc support
Flight Controller board that comes on Intel Aero RTF Drone.
2017-03-24 12:06:19 +11:00
Randy Mackay b30d743812 Copter: AP_Arming calls parent's gps checks
Allows removing some duplicate code
2017-03-13 11:31:51 +11:00
Randy Mackay 51c00f8144 Copter: use only downward facing rangefinder 2017-02-27 15:18:16 +09:00
Peter Barker 01b1916de5 Copter: ensure logging is working as part of prearm 2017-01-20 17:03:45 +09:00
Peter Barker e7d3219a58 Copter: check all channels have been configured, not just throttle 2017-01-20 13:02:53 +09:00
Peter Barker ab13b3beaf Copter: make rc checks verbose on failure 2017-01-20 13:02:53 +09:00
Peter Barker 078866046a Copter: correct rc-arming checks concerning trims
Trims should always be between min and max
2017-01-20 13:02:53 +09:00