Randy Mackay
b750193563
AP_Arming: add pre-arm system check that scripting init succeeded
5 years ago
Randy Mackay
51b5fac511
AP_Arming: add mission and rangefinder to param desc
5 years ago
Randy Mackay
ff7a21333d
AP_Arming: add terrain init check to system checks
5 years ago
Siddharth Purohit
9b2c060cc5
AP_Arming: add support for reporting UAVCAN Server errors
5 years ago
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.
5 years ago
Michael du Breuil
d8bce8295e
AP_Arming: Directly include needed headers
6 years ago
Randy Mackay
2bfc26621a
AP_Arming: resolve check_failed compiler warning
6 years ago
Peter Barker
95b8c12454
AP_Arming: mark check_failed as taking a format string
6 years ago
Michael du Breuil
4396540a22
AP_Arming: Add rangefinder checks
6 years ago
Michael du Breuil
4b2cb45ac0
AP_Arming: Cope with new AP_GPS::first_unconfigured_gps
6 years ago
Michael du Breuil
5d3cfcb59c
AP_Arming: Add scripting method
6 years ago
Peter Barker
bca411b2c4
AP_Arming: reduce length of internal errors errorstring prefix
...
MissionPlanner's HUD requires a short string for this to be useful
6 years ago
Peter Barker
84eff51539
AP_Arming: remove stray comment on removed parameter
...
Almost certainly a rebase issue
6 years ago
Michael du Breuil
eeca59d1ef
AP_Arming: Include needed AP_Baro.h
6 years ago
Andrew Tridgell
8fc8bc4d84
AP_Arming: notify logging system of an arming failure
6 years ago
Michael du Breuil
c70107cabb
AP_Arming: Fix AP_GPS.h include
6 years ago
Peter Barker
bb14ec1a2c
AP_Arming: make proximity sensor checks common
6 years ago
Peter Barker
1c4b5b0d73
AP_Arming: move arm status statustext messages back into vehicles
...
Not all vehicle maintainers like having these emitted as part of normal
operations.
6 years ago
Peter Barker
61a2be1470
AP_Arming: change arm and disarm to account for Copter now using them
6 years ago
Peter Barker
84b16ea3dd
AP_Arming: move check for ARMING_CHECK_NONE back into relevant vehicles
...
Plane and Rover allow all prearm and arm checks to be bypassed with
ARMING_CHECK_NONE. Not all vehicles allow this, so move this bypass
back into Plane and Rover.
6 years ago
Peter Barker
aff6cb424f
AP_Arming: move Log_Write_Arm_Disarm in, make disarm virtual
6 years ago
Peter Barker
d384827291
AP_Arming: add singleton
6 years ago
Peter Barker
776c111d3c
AP_Arming: do not permit arming if any internal errors have occured
6 years ago
Peter Barker
45ebbf2877
AP_Arming: correct check against ARMING_CHECK_NONE
...
As opposed to all of the other ARMING_CHECK values this one isn't
actually a mask
6 years ago
Andrew Tridgell
9c6c4101c9
AP_Arming: make arm_checks() virtual
...
# Conflicts:
# libraries/AP_Arming/AP_Arming.h
6 years ago
Pierre Kancir
6397cb0c0e
AP_Arming: use get_distance instead of location_diff
6 years ago
Michael du Breuil
63fcd23f7b
AP_Arming: Include AP_Logger directly
6 years ago
Tom Pittenger
4178ef98ba
AP_Arming: rename dataflash to logger
6 years ago
Peter Barker
0dacf78c12
AP_Arming: use enum class for ArmingMethod and ArmingRequired
6 years ago
Peter Barker
7bdd2eb755
AP_Arming: move checking of fence up
6 years ago
Peter Barker
12981b1f07
AP_Arming: correct use of failure messages as format strings
...
This is important as if the returned string happens to contain
substitutions (%s in particular), we can attempt to pull random data
off the stack and incorporate it in the string.
This sort of bug is rather famous for serious explots in sendmail.
This could be bad if your stack is relatively full and the memory after
it is inaccessible.
6 years ago
Randy Mackay
26fd334882
AP_Arming: provide better feedback on attitude check
6 years ago
Randy Mackay
b805c40bf7
AP_Arming: add ahrs attitude check
6 years ago
Randy Mackay
72fabb5cd3
AP_Arming: always run compass calibration checks
6 years ago
Tom Pittenger
13f0ad8a1c
AP_Arming: unify singleton naming to _singleton and get_singleton()
6 years ago
Nigel Williams
b2c5d7f04a
AP_Arming: Make logging check consider "turned off" as valid
...
When ARMING_CHECKS has ARMING_CHECK_LOGGING, consider having no
logging backend to be valid.
6 years ago
Michael du Breuil
1b2b7385a2
AP_Arming: Reduce header scope, remove width specifier
6 years ago
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
6 years ago
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
6 years ago
Francisco Ferreira
de1d02d697
AP_Arming: support KDECAN
6 years ago
Michael du Breuil
c4ff1f4307
AP_Arming: Allow disarming to force the safety switch
6 years ago
Pierre Kancir
1bd9b61bf6
AP_Arming: const correctness
6 years ago
Pierre Kancir
dd2798d099
AP_Arming: remove unused parameter and variable
6 years ago
Pierre Kancir
0800f72377
AP_Arming: untangle header inclusion
6 years ago
Michael du Breuil
c3de3cc923
AP_Arming: Add checks that the mission contains expected items
6 years ago
Michael du Breuil
ad01d345d1
AP_Arming: Fix badly formatter airspeed message
6 years ago
Randy Mackay
e702ca7202
AP_Arming: resolve compiler warning
6 years ago
Michael du Breuil
e56f12b68e
AP_Arming: Add servo voltage check, paramertise the Vcc check
6 years ago
Andrew Tridgell
8d5b9521ad
AP_Arming: added IOMCU health check
6 years ago
Peter Barker
21eacc5e31
AP_Arming: account for snprintf now null-terminating strings
6 years ago