Peter Barker
4d0c61970d
ArduSub: log disarm method
2020-02-22 12:16:29 +11:00
Peter Barker
7b9cdd6d06
AP_Arming: log disarm method
2020-02-22 12:16:29 +11:00
Peter Barker
3b8a2fb262
AP_Arming: log arming
2020-01-14 11:39:36 +11:00
Andy Piper
c16c60a761
AP_Arming: add camera arming checks
2019-12-30 13:02:04 +11:00
Randy Mackay
4bcf66481f
AP_Arming: add mandatory_checks
...
These are checks that can never be bypassed
2019-12-03 08:06:39 +08:00
Peter Barker
5428d13502
AP_Arming: remove bogus ARMING_CHECK_NONE 'bitmask value'
...
This looks like a bitmask value, but if you treat it like one (and
people have in the past!) by using logical operations then you get the
incorrect result.
Places which were checking for equivalence to ARMING_CHECK_NONE now
simply check the bitmask to see if it is all-empty.
2019-10-08 10:31:07 +11:00
Peter Barker
95b8c12454
AP_Arming: mark check_failed as taking a format string
2019-08-05 14:18:05 +10:00
Michael du Breuil
4396540a22
AP_Arming: Add rangefinder checks
2019-07-30 10:42:16 +10:00
Michael du Breuil
5d3cfcb59c
AP_Arming: Add scripting method
2019-07-23 10:05:29 +09:00
Peter Barker
bb14ec1a2c
AP_Arming: make proximity sensor checks common
2019-06-04 08:45:34 +09:00
Peter Barker
aff6cb424f
AP_Arming: move Log_Write_Arm_Disarm in, make disarm virtual
2019-05-30 07:37:30 +09:00
Peter Barker
d384827291
AP_Arming: add singleton
2019-05-30 07:37:30 +09:00
Andrew Tridgell
9c6c4101c9
AP_Arming: make arm_checks() virtual
...
# Conflicts:
# libraries/AP_Arming/AP_Arming.h
2019-04-22 16:53:35 +10:00
Peter Barker
0dacf78c12
AP_Arming: use enum class for ArmingMethod and ArmingRequired
2019-03-12 19:48:14 +11:00
Peter Barker
7bdd2eb755
AP_Arming: move checking of fence up
2019-03-08 08:57:27 +09:00
Michael du Breuil
1b2b7385a2
AP_Arming: Reduce header scope, remove width specifier
2019-01-25 09:47:17 +09:00
Francisco Ferreira
de1d02d697
AP_Arming: support KDECAN
2019-01-18 00:57:33 +00:00
Pierre Kancir
dd2798d099
AP_Arming: remove unused parameter and variable
2019-01-11 08:38:53 +09:00
Pierre Kancir
0800f72377
AP_Arming: untangle header inclusion
2019-01-11 08:38:53 +09:00
Michael du Breuil
c3de3cc923
AP_Arming: Add checks that the mission contains expected items
2019-01-08 10:39:50 +11:00
Michael du Breuil
a8741f62f9
AP_Arming: Use AP_BattMonitor's arming checks for the battery
2018-10-09 00:44:46 +01:00
Randy Mackay
7a7533724a
AP_Arming: rename rudder_arming to get_rudder_arming_type
2018-09-11 19:34:39 +10:00
Randy Mackay
f039c6d5f4
AP_Arming: minor format fix
2018-09-11 19:34:39 +10:00
Randy Mackay
ba2b9f3d47
AP_Arming: add RUDDER parameter
2018-09-11 19:34:39 +10:00
Andrew Tridgell
bf1bca6820
AP_Arming: added arming check for storage health
2018-07-10 15:41:44 +10:00
Peter Barker
e400a0e351
AP_Arming: use ArmingMethod enumeration
2018-07-03 15:16:38 +10:00
Peter Barker
6979f0d3a0
AP_Arming: remove unused arming_method member
2018-07-03 15:16:38 +10:00
Peter Barker
598f82a2fe
AP_Arming: use singletons in AP_Arming
2018-07-03 13:44:11 +10:00
Peter Barker
cba61598b1
AP_Arming: a check_failed function
2018-06-23 15:33:19 +10:00
Peter Barker
410e72f83c
AP_Arming: break out a gyros-consistent method
2018-06-21 16:25:29 +01:00
Peter Barker
d2b8ea4bb0
AP_Arming: break out an accels-consistent method
2018-06-21 16:25:29 +01:00
Peter Barker
d8128ba69a
AP_Arming: option to force arm, bypassing checks
2018-06-20 11:43:38 +10:00
Michael du Breuil
7830dab0a8
AP_Arming: Add a servo check that (<= min trim max) for all channels
2018-04-24 01:16:26 +01:00
Peter Barker
cc5af90d1a
AP_Arming: home state has moved to AP_AHRS
2018-03-19 10:32:37 +09:00
Peter Barker
8d8f2208c0
AP_Arming: use baro singleton
2018-03-08 21:20:05 -08:00
Peter Barker
25a0e6378e
AP_Arming: manual transmitter checks call rc calibration checks
2017-11-08 19:07:57 +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
30c1a040d7
Copter: prearm baro checks are called in parent class
2017-11-08 19:07:44 +09:00
Lucas De Marchi
39aee74b29
AP_Arming: make constructor protected
2017-09-26 03:01:21 +01:00
Jacob Walser
b8e7d23cc4
AP_Arming: Add bool check_min_max parameter for Copter/Sub RC checks
2017-08-16 11:37:46 -04:00
Peter Barker
b2459c67d5
AP_Arming: move Copter RC checking code into library
2017-08-14 15:32:25 +09:00
Randy Mackay
e398bb5c68
AP_Arming: make gps-checks virtual
...
Copter's GPS checks will override this
2017-03-13 11:31:51 +11:00
Randy Mackay
d35a208dae
AP_Arming: remove unused set_enabled_checks
2017-01-17 11:45:08 +09:00
Randy Mackay
34a850e1a5
AP_Arming: formatting and comment fixes
...
No functional change
2017-01-17 11:45:08 +09:00
Randy Mackay
593f035c53
AP_Arming: remove required, min-volt, min-volt2 params from Copter
2017-01-17 11:45:08 +09:00
Randy Mackay
5be3d14648
AP_Arming: rudder_arming moved to AP_Arming_Plane
2017-01-17 11:45:08 +09:00
Peter Barker
1f37366c5b
AP_Arming: make expected magnetic field strength available to subclasses
2017-01-17 11:45:08 +09:00
Peter Barker
362c6e1b9e
AP_Arming: use callback in place of variable reference for home state
2017-01-17 11:45:08 +09:00
Peter Barker
fff2068a5a
AP_Arming: add arming check for logging actually started
2016-11-29 15:14:09 -08:00
Peter Barker
5776b3fddb
AP_Arming: check CardInserted in AP_Arming
2016-11-29 15:14:09 -08:00
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Lucas De Marchi
39f39afa7b
AP_Arming: replace header guard with pragma once
2016-03-16 18:40:40 +11:00
Tom Pittenger
425c9bcd0b
AP_Arming: use AP_BATT_MONITOR_MAX_INSTANCES instead of fixed array size
2016-03-14 09:19:09 -07:00
Michael du Breuil
21bdf32d33
AP_Arming: Add minimum voltage to arm
2016-03-14 09:06:57 -07:00
Tom Pittenger
7e4ae39b8e
AP_Arming: fixed GPS_CFG mask bug
2016-02-19 13:53:44 -08:00
Michael du Breuil
18f55eccea
AP_Arming: Add GPS configuration checks to arming
2016-02-12 00:37:04 -08:00
Tom Pittenger
841f34effa
AP_Arming: add param for accel error threshold
...
This is the threshold error to determine inconsistent accelerometers.
2016-01-02 10:01:46 +11:00
Michael du Breuil
52666232ed
AP_Arming: Allow arming without the hardware safety switch having been pressed
...
Added an enum to the check type that allows for arming without the hardware switch having been enabled
2015-12-21 17:48:29 +11:00
Randy Mackay
53b39b201b
AP_Arming: make ins check virtual
2015-10-16 13:50:57 +09:00
Randy Mackay
342651cc9b
AP_Arming: add board voltage checks
2015-10-16 13:50:54 +09:00
Randy Mackay
6b91beb3ff
AP_Arming: formatting changes
2015-10-16 13:50:48 +09:00
Randy Mackay
73e7e64bb8
AP_Arming: remove unused set_skip_gyro_cal
2015-09-21 17:06:29 +09:00
Andrew Tridgell
c48bef1552
AP_Arming: removed the need for the GCS print function
2015-09-08 13:54:25 +10:00
squilter
ddda407ff3
AP_Arming: update severities
2015-08-28 10:04:35 +10:00
Gustavo Jose de Sousa
597562c69c
AP_Arming: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
2015-08-11 16:28:42 +10:00
Andrew Tridgell
54254c89d7
AP_Arming: control rudder arming with ARMING_RUDDER parameter
...
allow for 3 states:
0: no rudder arming
1: arm only
2: arm and disarm
2015-07-23 21:48:50 +10:00
Andrew Tridgell
2de8c26c06
AP_Arming: allow pre_arm_checks() to be subclassed
...
this allows for vehicle specific arming checks
2015-06-04 13:26:39 +10:00
Lucas De Marchi
ca7db5cdc1
AP_Arming: use functor macros
...
Functor is not yet being used but let's make is macro fallback to the
previous Delegate implementation for easy of transition between the two.
2015-05-26 13:46:52 +10:00
Andrew Tridgell
c3aa8d67fa
AP_Arming: convert to delegates
2015-05-21 07:48:50 +10:00
Andrew Tridgell
2552acbf12
AP_Arming: fixed accel cal test in arming
...
use a per-imu time of last cal pass, and triple accel threshold for
IMU3. Raise threshold to 0.5 for IMU1/IMU2
2015-05-08 21:01:52 +10:00
Andrew Tridgell
5acc4c333b
AP_Arming: accept accel/gyro if OK in last 10 seconds
...
this should prevent short periods of movement from triggering arming
status change alarms
2015-03-31 15:37:24 -07:00
Andrew Tridgell
3a51bac0d0
AP_Arming: use new enum for home_is_set
2015-02-21 10:13:43 +11:00
Andrew Tridgell
4ecd99eb76
AP_Arming: added check for logging available
...
this is used for refusing to fly without microSD inserted
2015-02-06 19:05:02 +11:00
Andrew Tridgell
a37f3680e4
AP_Arming: support skip_gyro_cal
...
also break up arming INS reports, to be clearer for users
2015-01-20 19:47:15 +11:00
Andrew Tridgell
850b3b89ea
AP_Arming: added INS checks and airspeed checks
...
this also displays all failing arming checks, not just the first
one. That is more useful for the user
2015-01-20 11:27:13 +11:00
Randy Mackay
fa2f5d9c68
Arming: accept non-const compass in constructor
...
The compass.configured() method checks the eeprom and cannot be const
meaning the Arming object requires a non-const reference to the compass.
Removed check for null compass because the compass object is always
created although this could lead to unnecessary pre-arn check failures
even though compass-use is set to false.
2014-07-10 22:50:52 +09:00
Andrew Tridgell
aae0e3c0e5
AP_Arming: allow checking of pre-arm without reporting
...
useful for updating AP_Notify LEDs
2014-01-23 21:39:55 +11:00
Andrew Tridgell
f12dd85e1b
AP_Arming: make enum values clearer
2013-12-20 11:59:05 +11:00
Andrew Tridgell
4a77a944fa
AP_Arming: make it possible to change ARMING_REQUIRED without a reboot
2013-12-11 17:29:27 +11:00
Andrew Tridgell
89bbf5de3a
AP_Arming: fixed public/private split
2013-12-11 17:29:26 +11:00
Michael Day
ebf1d9c136
AP_Arming: First commit of AP_Arming library.
...
Intended to prevent unintentional motor startups.
2013-12-11 17:29:18 +11:00