Commit Graph

18 Commits

Author SHA1 Message Date
jackhong12 4a4f361a17 all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
Peter Barker f6f19eeeb2 ArduSub: add do_disarm_checks boolean to disarm call
this creates symmetry between arming and disarming, at least as far as
the top-level arm() and disarm() calls are concerned.
2021-01-12 08:48:44 +09:00
Peter Barker 4d0c61970d ArduSub: log disarm method 2020-02-22 12:16:29 +11:00
Peter Barker 157da70cf7 Sub: fix compiler warnings on has_disarm_function 2019-08-02 08:23:57 +10:00
Justin f3634450d7 Sub: Enforce configuration of a disarm button 2019-07-17 12:44:41 -04:00
Peter Barker 8566a17a1d Sub: move arming-related functionality into parent classes
Logging moves up
arming via mavlink moves up
arming via switch moves up

arming switch may be forced off using BRD parameter
2019-05-30 07:37:30 +09:00
Peter Barker cc46ab3092 Sub: use singletons in AP_Arming 2018-07-03 13:44:11 +10:00
Patrick José Pereira e229d46612 Sub: Update functions argument names to match with cpp
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-06-29 15:51:30 -04:00
Peter Barker 3af4806d38 Sub: move home state into AP_AHRS 2018-03-19 10:32:37 +09:00
Peter Barker 06f6135daa Sub: use baro singleton 2018-03-08 21:20:05 -08:00
Peter Barker 5e1e3dc822 Sub: delete correct assignment operator 2018-03-08 21:20:05 -08:00
Andrew Tridgell 4c9f48244e Sub: removed create() method for objects
See discussion here:

  https://github.com/ArduPilot/ardupilot/issues/7331

we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach

Thanks to assistance from Lucas, Peter and Francisco
2017-12-14 08:12:28 +11:00
Peter Barker c436235b05 Sub: remove defaulting of report value in rc_calibration_checks 2017-11-08 19:08:21 +09:00
Peter Barker 7961a8f5c8 Sub: rc calibration checks are called by AP_Arming 2017-11-08 19:08:01 +09:00
Lucas De Marchi eed3c83079 ArduSub: use static method to construct AP_Arming_Sub
This also fix a bug of calling AP_Param::setup_object_defaults() on the
parent.
2017-09-26 03:01:21 +01:00
Jacob Walser 1ff656df2d Sub: Add arming check for ahrs health 2017-04-16 14:25:13 -04:00
Jacob Walser a62d728933 Sub: Move arming checks under AP_Arming_Sub 2017-03-01 10:57:27 -05:00
Jacob Walser d21cd513cd Sub: Add AP_Arming_Sub class 2017-03-01 10:57:27 -05:00