1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00
Commit graph

32 commits

Author SHA1 Message Date
Bruce Luckcuck
565f1f4db5 Add ACC_CALIB arming disabled reason if ACC is required but not calibrated
Checks various features, modes, and OSD elements to determine if ACC is needed. Generates an arming disabled warning if ACC calibration has never been completed.
2019-10-21 11:13:55 -04:00
Bruce Luckcuck
1d7cb24bb9 Add missing ARMING_DISABLED_DSHOT_BITBANG name string
Would caouse display problems in the OSD with `ARMING_DISABLED_DSHOT_BITBANG` showing up as `ARMSWITCH` and any real cases of `ARMING_DISABLED_ARM_SWITCH` display garbage or possibly cause a wedge.
2019-10-10 10:08:15 -04:00
Bruce Luckcuck
25435ea49c Add reboot required arming disabled flag, support for setting in MSP 2019-05-19 09:42:03 -04:00
mikeller
760a524027 Fixed tests, added crash indication. 2019-04-05 08:39:23 +13:00
Bruce Luckcuck
89ceb70b3c Add arming disabled check if RPM filter enabled but DSHOT telemetry not working
If the RPM filter is enabled, requires all motors to have received a valid DSHOT telemetry frame before arming is allowed. Otherwise sets the arming disabled reason `ARMING_DISABLED_RPMFILTER`.
2019-03-17 10:36:21 -04:00
mikeller
b1d989ac41 Remove the OSD_MENU arming disabled flag, as it is redundant to the CMS_MENU flag. 2019-01-22 18:21:31 +13:00
Tony Cabello
84d2bc2c83 Arm prevention if Rescue is activated 2018-12-02 19:17:52 +01:00
s0up
ac6b8088c9 add gps rescue mode 2018-05-20 16:28:17 -07:00
Robert Lacroix
092baf5805 Add Paralyze mode support
During team relay races it's unsafe to retrieve crashed quads because the course is continuously hot. In order to safely fly a backup quad with the primary quad crashed in the field (but powered up) it's necessary to:

* Disable arming, so that the crashed quad doesn't unintentionally arm as well. This is specifically a problem when a transmitter can send signals to all powered up receivers (like FrSky and others).
* Change VTX to an unused channel with low power output
* Turn off telemetry

This change introduces a new mode called paralyze which disables arming and prevents mode changes (except beeper). It can only be invoked while the quad isn't armed. Once it's invoked, the FC has to be power cycled. In order to invoke it, the mode needs to be in a disengaged state at least once, so that forgetting to flip the switch back after crashing doesn't immediately invoke graveyard on the backup quad.

_Legal disclaimer: I am making my contributions/submissions to this project solely in my personal capacity and am not conveying any rights to any intellectual property of any third parties._
2018-05-10 07:40:31 -07:00
blckmn
a9f74cd6df Removed excess trailing spaces before new lines on licenses. 2018-04-25 20:58:00 +10:00
blckmn
46fe22b4bd Direct license replacement 2018-04-22 09:22:46 +10:00
mikeller
c89f87018b Fixed OSD warnings overlap to the right. 2018-02-23 19:36:22 +13:00
Bruce Luckcuck
4270c658a3 Reordered arming disabled flags to give runaway takeoff a higher priority
Previously the ARMING_DISABLED_RUNAWAY_TAKEOFF reason would be overridden by ARMING_DISABLED_THROTTLE which prevented the indication that the disarming was casued by a runaway event.

Also fixed a problem where the disarm beep pattern would override the arming disabled beep codes when runaway takeoff triggered an auto-disarm.
2018-02-20 06:54:02 -05:00
Bruce Luckcuck
a32b05c284 Initial implementation of Runaway Takeoff Prevention (anti-taz)
Detects runaway pidSum values on takeoff and auto-disarms to prevent the "Tasmanian Devil" caused by incorrect props, wrong motor order/direction, incorrect flight controller orientation, etc.  After a successful takeoff and normal flight is detected the feature is disabled for the remainder of the battery.
2018-01-31 07:36:16 -05:00
Martin Budden
e7cac0e9c6 Always use arming disable flag names 2018-01-21 14:15:49 +00:00
mikeller
a8d34dabb0 Changed defines for GYRO/ACC/MAG/BARO/GPS/SONAR/OSD/BLACKBOX/CMS to conform to the USE_ convention. 2017-11-05 10:15:24 +13:00
mikeller
ee19138a3d Changed arming disabled reason display in OSD to show real reason. 2017-11-01 21:20:52 +13:00
mikeller
5692fc6688 Added MSP command to disable arming. 2017-10-11 19:46:21 +13:00
jflyper
bc799fd99f Remove space from arming disabled flag print name for readability 2017-09-21 10:12:45 +09:00
mikeller
70cd6bdc38 Fixed arming condition check when 'gyro calibration on first arm' is activated. 2017-08-27 11:08:31 +12:00
Dan Nixon
ad540d8ad8 Add prevention for turning radio on at any time with arm switch on 2017-08-13 16:05:48 +01:00
Dan Nixon
0c0483d020 Add configurable boot grace time
This guards against the case when the RX takes longer to obtain a valid
link than the gyro takes to calibrate (previously this delay is all that
stopped immediate arming).
2017-08-13 13:17:25 +01:00
Dan Nixon
945870089f Require the arm switch to be off before arming
Requires that the arm switch must be moved from off to on after all
arming disable flags are unset.

Prevents accidental arming due to arm switch being left in the on
position.
2017-08-13 12:42:29 +01:00
Dan Nixon
e4b8d3a8f1 Add missing arming disable flag name 2017-08-01 10:34:25 +01:00
Dan Nixon
03758427aa Reorder to fit severity ranking 2017-07-30 17:02:59 +01:00
Dan Nixon
312a7d73b9 Disable arming as soon as an RX link is lost 2017-07-30 15:56:23 +01:00
Dan Nixon
dbbe79a9f4 Add arming disabled reasons to OSD 2017-07-02 17:29:21 +01:00
blckmn
82b73ce00e Moved disabled flags text to CLI where other flag text is located 2017-07-02 10:06:38 +10:00
jflyper
42ba069a69 Print names instead of hex value 2017-06-30 22:02:40 +09:00
jflyper
adee15a806 Allow gyro-less booting 2017-06-30 08:51:06 +09:00
mikeller
31df82db2d Reworked arming conditions. 2017-06-30 08:43:46 +12:00
Martin Budden
541f4d4018 Directory rearrangement to reflect cleanflight changes 2016-08-07 13:44:00 +01:00
Renamed from src/main/config/runtime_config.c (Browse further)