1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00
Commit graph

91 commits

Author SHA1 Message Date
Martin Budden
d22b01b5ec Added USE_ALT_HOLD build flag 2017-11-19 13:20:47 +00:00
Martin Budden
cfc87d1891 Better separation between GPS and NAV 2017-11-18 08:00:31 +00:00
mikeller
0331c1f2f6 Fixed intentation in 'fc_core.c'. 2017-11-17 17:33:45 +13:00
Martin Budden
e3ee9a5588 Created new interface directory 2017-11-12 12:20:58 +00:00
Dan Nixon
c97fbd04b8 Fix 3D arming checks when using switched 3D mode
When FEATURE_3D is on and BOX3DONASWITCH is configured the "standard"
throttle arming condition is used.
2017-11-08 20:14:07 +00:00
Dan Nixon
0315005445 Fix 3D arming checks for BOX3DDISABLE
When FEATURE_3D is on and BOX3DDISABLE is on then the normal throttle
arming check is performed.

When FEATURE_3D is on and BOX3DDISABLE is off then the reduced 3D
throttle arming check is performed.
2017-11-08 20:14:07 +00:00
Dan Nixon
eadcf42650 Fix 3D arming checks for throttle value
When FEATURE_3D is on the arm switch does not need to be toggled when
the throttle returns to a valid value (i.e. in the 3D deadband) from
either direction.

This allows the previous "arm and slowly raise throttle" arming
behaviour for 3D flight.
2017-11-08 20:14:00 +00:00
mikeller
b78d8ad83e Converted more 'feature' type defines to use the 'USE_<x>' convention: LED_STRIP TARGET_CONFIG BRUSHED_ESC_AUTODETECT SERIAL_RX TELEMETRY TELEMETRY_CRSF TELEMETRY_FRSKY TELEMETRY_HOTT TELEMETRY_IBUS TELEMETRY_JETIEXBUS TELEMETRY_LTM TELEMETRY_MAVLINK TELEMETRY_SMARTPORT TELEMETRY_SRXL TELEMETRY_NRF24_LTM TELEMETRY_LTM SPEKTRUM_BIND NAV BUTTONS 2017-11-07 18:49:12 +13: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
Bryce Johnson
374dd3f327 Fix so airmode threshold works 2017-10-11 13:08:55 -05:00
Bryce Johnson
d1a197f99e 3d on a mode switch 2017-10-11 13:08:12 -05:00
Michael Keller
edea16f17e Merge pull request #4205 from martinbudden/bf_task_mainpidloop
Rationalise taskMainPidLoop
2017-10-12 00:08:02 +13:00
Michael Keller
7d671cc998 Merge pull request #4112 from DanNixon/anti_turtle_mode_warnings
Anti turtle mode warnings
2017-10-12 00:07:21 +13:00
Michael Keller
a7deb8b899 Merge pull request #3799 from adrianmiriuta/HEADFREE_MAG
HEADFREE true 3D (second edition)...
2017-10-12 00:01:23 +13:00
Dan Nixon
3aeef39b5a Add OSD and beeper warnings for anti turtle mode 2017-10-10 08:20:56 +01:00
Martin Budden
53f5e87c7a Add void to function declarations/definitions where required 2017-09-24 09:22:48 +01:00
Adrian Miriuta
7146c40ca8 HEADFREE true 3D (second edition)...
reduced memory footprint ...
	rebased squashed cleanup
2017-09-23 07:35:30 +02:00
Martin Budden
62862c3388 Rationalise taskMainPidLoop 2017-09-21 08:00:13 +01:00
Martin Budden
287a45659d CRSF code tidy 2017-09-20 11:48:43 +01:00
Bryce Johnson
72a8e91fdd Disable small_angle during crashflip mode 2017-09-17 16:52:36 -05:00
mikeller
d4b1c06bf8 Added delay before sending Dshot commands to avoid read errors. 2017-09-10 12:55:47 +12:00
Bryce Johnson
fd37566bc5 New turtle mode that only spins needed props 2017-09-07 07:59:59 -05:00
Michael Keller
4b2e3c6dda Fixed Dshot command issues with BLHeli_S ESCs. 2017-09-05 08:30:03 +12:00
mikeller
70cd6bdc38 Fixed arming condition check when 'gyro calibration on first arm' is activated. 2017-08-27 11:08:31 +12:00
mikeller
91ffa4b88c Fixed Dshot command sending to all motors. 2017-08-23 01:59:34 +12:00
Dan Nixon
490146859c Simplify boolean expression for prearm state test 2017-08-15 09:41:09 +01: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
mikeller
e7de536bb6 Make Dshot reversing command being sent conditional on DSHOT_REVERSE mode being configured (unconfiguring it fixes problem with BLHeli_S 16.62). 2017-08-13 15:04:16 +12:00
Bryce Johnson
f8bd089e47 Add in prearm option for safer arming.
When prearm is used, it must be enabled before arming.  Before you can arm again, the prearm switch needs to get toggled. (+3 squashed commit)
2017-07-30 17:08:46 -05:00
Dan Nixon
e0ebee168a Remove the ability to disable stage 2 failsafe 2017-07-19 09:47:09 +01:00
mikeller
282668edde Added BOXDSHOTREVERSE as a separate mode to BOX3DDISABLE. 2017-07-08 12:32:23 +12:00
Martin Budden
3cdbaaf14d Remove duplication in motor enable/disable 2017-07-06 08:55:26 +01:00
borisbstyle
4ff7b9394b mixTable() separation for readability 2017-07-05 13:43:02 +02:00
Martin Budden
a86ac89448 Whitespace tidy 2017-07-05 09:34:44 +01:00
Martin Budden
3d4f0bb137 Whitespace tidy 2017-07-05 06:36:22 +01:00
mikeller
67acc6c7ec Added beeps to indicate the reason for arming being disabled. 2017-07-04 01:38:04 +12:00
mikeller
31df82db2d Reworked arming conditions. 2017-06-30 08:43:46 +12:00
Martin Budden
564e0c94b8 Move some GPS variables into struct. Some alignment with iNav 2017-06-25 14:44:04 +01:00
mikeller
7bd05b2148 Refactored Dshot reverse condition block. 2017-06-25 21:18:39 +12:00
Michael Keller
bed5f0a58b Merge pull request #3328 from brycedjohnson/fixreversemotors
Explicit initialization for reverse motors
2017-06-22 07:55:01 +12:00
Bryce Johnson
cb8c20107e explicit initialization for reverse motors 2017-06-21 14:30:26 -05:00
mikeller
7c14c49701 Changed 'pwmWriteDshotCommand' to use switch for better readability. 2017-06-18 15:51:03 +12:00
Michael Keller
227a1f617e Merge pull request #3267 from brycedjohnson/dshotcommand
Added anti-turtle reversemotors and beeper using dshot commands on blheli_s
2017-06-16 01:01:12 +12:00
Bryce Johnson
13e21c969e Added Dshot commands for reversing the motors and beeper for blheli_s 2017-06-14 12:34:36 -05:00
jflyper
d8ff795327 Fixup fc_msp.c (and fc_core.c) 2017-06-11 01:49:52 +09:00
Martin Budden
23f158913e Moved time functions out of system.h into time.h 2017-05-26 14:03:28 +01:00
Martin Budden
2c5deb8198 Merge pull request #3044 from martinbudden/bf_dual_gyro
Further work on multiple gyro support
2017-05-08 08:01:21 +01:00
Martin Budden
4be1e31d01 Further work on multiple gyro support 2017-05-08 07:02:45 +01:00