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

605 commits

Author SHA1 Message Date
Bruce Luckcuck
2610344266 Disable stick command processing while ARMING_DISABLED_RUNAWAY_TAKEOFF is set
Addresses the rare possibility that if runway takeoff triggers and disarms while the pilot has the sticks in some valid stick command configuration. Prevents the stick command from processing until the craft is disarmed and the ARMING_DISABLED_RUNAWAY_TAKEOFF condition is cleared.

For example, if the pilot was mid throttle and went full yaw right and runway takeoff triggered, then camera control would have be entered.
2018-02-24 09:29:19 -05:00
mikeller
c89f87018b Fixed OSD warnings overlap to the right. 2018-02-23 19:36:22 +13:00
Bruce Luckcuck
4185756baf Change crash-flip OSD message to track actual state rather than switch
Previously the OSD crash-flip warning would only track the state of the activation switch.  So if the switch was disabled but still armed the message would go away, but the quad was still in active crash-flip mode until it was disarmed.  This change makes the OSD message follow the actual internal state for crash-flip.
2018-02-21 08:19:59 -05:00
mikeller
232fc4e8de Unified BOX3DDISABLE and BOX3DONASWITCH switches. 2018-02-13 20:02:02 +13:00
Curtis Bangert
3a7540e042 Corrected issue with telemetry init when battery cell estimatation is undefined 2018-02-08 22:31:50 -05:00
Martin Budden
eb41132f63
Merge pull request #5097 from martinbudden/bfa_attitude_task_angle
Change attitude task freqency when in angle or horizon mode
2018-02-01 12:32:35 +00:00
Michael Keller
71ff35940d
Merge pull request #2739 from martinbudden/bf_rx_tidy4
Tidy RX code
2018-02-02 01:25:12 +13:00
Martin Budden
62ad67f45b Change attitude task freqency when in angle or horizon mode 2018-02-01 11:31:41 +00: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
5cd6627fb2 Tidy RX failsafe code 2018-01-31 12:26:01 +00:00
Martin Budden
7acebf8b34 Increased number of rate profiles to 6 2018-01-31 09:21:53 +00:00
Adrian Miriuta
b21d681153 Introduced cli parameter <gyro_offset_yaw>
It allows to manually compensate gyro drift over time.
rebased squashed.
2018-01-25 12:45:38 +01:00
Michael Keller
a9068e1997
Merge pull request #4982 from mikeller/added_rx_processing_function
Added rx data processing function and used it for FPort processing.
2018-01-24 00:16:38 +13:00
mikeller
bf463cf104 Added rx data processing function and used it for FPort processing. 2018-01-23 20:10:00 +13:00
Martin Budden
3116ef4008 Moved compass health check into compass.c 2018-01-21 14:51:59 +00:00
Michael Keller
c4b5748b8d
Merge pull request #4978 from qba667/betaflight_ibus
Additional IBUS telemetry implemented.
2018-01-20 16:27:50 +13:00
qba667
5748e75408 Additional IBUS telemetry implemented. 2018-01-18 13:37:02 +01:00
mikeller
ee65eba88d Added selectable RaceFlight rates. 2018-01-19 00:38:14 +13:00
Dan Nixon
ed42d59c94 Add temperature conversion for ESC temp, tidy formatting 2018-01-14 20:56:40 +00:00
Dan Nixon
52d45ff72b Add temperature unit conversion
Selects unit based on OSD unit system setting: metric is degC and
imperial is degF.
2018-01-14 13:49:05 +00:00
Dan Nixon
f8e4d02c99 Add core (MCU) temperature to OSD 2018-01-13 12:39:42 +00:00
Martin Budden
e6f5926131 Prepare OSD for iterative updating 2018-01-12 14:46:29 +00:00
mikeller
09d396c05c Cleaned up parameter group handling.
Fixed missing include.
2017-12-31 10:51:01 +13:00
Michael Keller
4ef45f008a
Merge pull request #4866 from martinbudden/bfa_gyro_unittest
Added gyro unit test
2017-12-30 12:01:38 +13:00
Martin Budden
7af079d5a7 Added gyro unit test 2017-12-29 12:04:05 +00:00
Martin Budden
d90b42970c Acc fn/variable renames to align with iNav 2017-12-29 10:23:51 +00:00
mikeller
0b9884961d Updated handling of FrSky telemetry processing, renamed to FrSkyHub for disambiguation. 2017-12-28 11:01:35 +13:00
azol
6953e799fa add old split firmware support 2017-12-26 10:41:11 +08:00
mikeller
f6bdfd91e2 Moved beeper parameter groups to pg/. 2017-12-24 17:56:37 +13:00
mikeller
2d930b28ce Moved vcd parameter group to pg/. 2017-12-24 15:13:48 +13:00
mikeller
b489d0ba9d Renamed 'parameter_group' to 'pg'. 2017-12-19 23:36:31 +13:00
Martin Budden
ed30e9f5c7 Moved gyro_sync into drivers/accgyro directory 2017-12-17 16:01:50 +00:00
Martin Budden
a33a82725e Add fast RAM support, CCM or TCM depending on processor 2017-12-16 17:42:35 +00:00
Martin Budden
12640972a9 Preparation for using instruction cache on F7 2017-12-15 10:07:19 +00:00
Anders Hoglund
e42d74926a Fixed unittest compile warnings caused by inconsistant data types. 2017-12-11 01:21:15 +01:00
jflyper
db014752d7 Convert TRANSPONDER to USE_xxx scheme 2017-12-11 02:49:00 +09:00
Alberto García Hierro
d666151188 Don't check batteryConfig fields from the telemetry, call APIs instead
This makes the telemetry code less dependendant on the battery
implementation.

New functions introduced:
    isBatteryVoltageAvailable()
    isAmperageAvailable()
2017-12-04 17:14:17 +00:00
Martin Budden
d0a77bc917 Keep ITerm zero for 250ms after motor reversal in 3D mode 2017-12-01 21:36:32 +00:00
Martin Budden
9060ecb302 Reset ITerm on motor reversal 2017-12-01 07:06:20 +00:00
Michael Keller
a0c672ba69
Merge pull request #4672 from martinbudden/bfa_imu_acc_gyro_accumulate
Add acc and gyro accumulators to improve attitude estimation
2017-11-29 00:50:30 +13:00
Martin Budden
22c672fa7d Add acc and gyro accumulators to improve attitude estimation 2017-11-28 06:26:57 +00:00
Martin Budden
0a7d2412e1 Improved reentrancy of RX code. Made SBUS re-entrant 2017-11-26 23:23:20 +00:00
Martin Budden
8cb7abd15f Added data parameter to UART RX callback 2017-11-25 10:11:37 +00:00
Martin Budden
f527455d34 Blackbox header tidy 2017-11-23 18:24:09 +00:00
Dan Nixon
2bb561aa61 Add RTC date/time to OSD stats
Fixes #4575
2017-11-19 10:55:52 +00:00
Martin Budden
f308e7ac38
Merge pull request #4581 from martinbudden/bf_acro_rateprofiles
When in ACRO mode use trim sticks to adjust RATE profile
2017-11-19 04:44:01 +00:00
Martin Budden
cfc87d1891 Better separation between GPS and NAV 2017-11-18 08:00:31 +00:00
Martin Budden
36957d6075 When in ACRO mode use trim sticks to adjust RATE profile 2017-11-17 12:25:14 +00:00
Anders Hoglund
0e1f0e89e7 Spektrum, CMS over Telemetry. Rebased and squashed. 2017-11-14 15:57:33 +01:00
Martin Budden
5e63724f7d
Merge pull request #4560 from martinbudden/bfa_crsf_interface
Split CRSF protocol into interface directory
2017-11-13 06:59:17 +00:00