Commit Graph

12829 Commits

Author SHA1 Message Date
jflyper 37bee1dcbc Configurable ADC internal sensor calibration values
There are MCUs without calibration values for VREFINT and temperature sensors.
Also changed adcTSSlopeK to signed, to handle negative slope case.
2018-11-09 01:26:43 +09:00
Tony Cabello 7abe51303f Total distance flown added to OSD and Stats 2018-11-08 15:40:30 +01:00
Michael Keller 49e2c4d312
Merge pull request #7040 from TonyBlit/gps_rescue_fly_away
GPS Rescue: added fly away check to sanity checks
2018-11-09 02:31:45 +13:00
Michael Keller 11c0979a0b
Merge pull request #7041 from etracer65/suppress_osd_stats_turtle_launch
Suppress OSD stats if disarming from crash-flip or untriggered launch control
2018-11-09 02:29:45 +13:00
Michael Keller 714db23dea
Merge pull request #7047 from Zarkopafilis/master
Swap magic number for constant in ibus.c
2018-11-09 02:20:37 +13:00
Michael Keller 7f7f58b193
Merge pull request #7050 from mikeller/fix_battery_parameter_group_declaration
Fixed parameter group declaration for 'batteryConfig'.
2018-11-09 00:17:08 +13:00
borisbstyle 7566f81d38
Merge pull request #6911 from jflyper/bfdev-move-USE_ITERM_RELAX-to-include-USE_ABSOLUTE_CONTROL
Move USE_ITERM_RELAX up to prevent unused warning of applyAbsoluteControl
2018-11-08 11:50:13 +01:00
Bruce Luckcuck 38c940c11e Improve behavior of OSD warnings element blinking
Previously the logic to blink the warnings element was based on whether batteryState was either BATTERY_WARNING or BATTERY_CRITICAL. The problem is that the warning element might be displaying a higher priority message that shouldn't blink.

Changes the logic to have the blinking based on the actual warning message displayed.

In addition to the battery warning/critical cases, added blinking for some other critical warnings like failsafe, CPU core temp warning, ESC sensor warnings, HEADFREE mode active, and RC smoothing not initialized.
2018-11-07 18:35:32 -05:00
Tony Cabello 3ce0ac0116 GPS Rescue: added fly away check to sanity checks 2018-11-07 16:05:28 +01:00
loopur 747714f218 Modify time complier error 2018-11-07 12:27:07 +08:00
loopur 016679f446 Add target HAKRCF405 2018-11-07 10:33:20 +08:00
Michael Keller 0ad3fbb5fc
Merge pull request #7026 from mikeller/fix_3d_crash_flip
Fixed crash flip with 3D enabled.
2018-11-07 13:04:49 +13:00
Thorsten Laux b2b0b60ba3 Fix smartport timeout issue 2018-11-06 15:22:20 +01:00
mikeller 850a4996b7 Fixed parameter group declaration for 'batteryConfig'. 2018-11-07 03:04:27 +13:00
mikeller ff8b2aa451 Fixed '3d_switched_mode' case. 2018-11-07 02:58:25 +13:00
mikeller ea99f7785b Fixed crash flip with 3D enabled. 2018-11-07 02:55:29 +13:00
Michael Keller f729f3fc6d
Merge pull request #7046 from mikeller/change_rc_rate_minimum
Changed RC rate minimum to be 0.01.
2018-11-07 02:00:53 +13:00
Michael Keller 83cc94ec9d
Merge pull request #7048 from dthakur/patch-1
Minor comment fix
2018-11-06 07:47:41 +13:00
Divya Thakur 852cfe59fb
Minor comment fix
1.5 -> 150% not 120%
2018-11-05 08:21:25 -08:00
Theodoros Zarkopafilis Ntakouris d639175a09 Swap magic number for constant in ibus.c 2018-11-05 16:10:06 +02:00
Michael Keller c2ec0caf4a
Merge pull request #7045 from mikeller/fix_stm32f3discovery_flash_overflow
Fixed flash overflow on STM32F3DISCOVERY.
2018-11-06 01:26:19 +13:00
mikeller 570a0f7882 Changed RC rate minimum to be 0.01. 2018-11-05 23:27:42 +13:00
mikeller 8fecd1422b Fixed flash overflow on STM32F3DISCOVERY. 2018-11-05 23:08:07 +13:00
Michael Keller 56b1c08561
Merge pull request #7039 from TonyBlit/gps_rescue_positive_seconds
GPS Rescue: sanity check counters are now always in positive seconds
2018-11-05 22:37:48 +13:00
Tony Cabello 35f6c30289 GPS Rescue: sanity check counters are now always in positive seconds 2018-11-04 21:28:50 +01:00
Michael Keller a9cef3e244
Merge pull request #7038 from mikeller/reduce_spracingf3_flash_size
Removed features from SPRACINGF3 to make the firmware fit into flash.
2018-11-05 08:13:02 +13:00
Bruce Luckcuck 98641cde75 Suppress OSD stats if disarming from crash-flip or untriggered launch control
The OSD stats provide no meaningful information and are just an annoyance when exiting these special states.

For Launch Control the stats will be displayed if the launch is triggered and normal flight occurrred.
2018-11-04 09:57:02 -05:00
mikeller ea06ec7962 Removed features from SPRACINGF3 to make the firmware fit into flash. 2018-11-04 15:54:02 +13:00
Michael Keller 3492bcff3d
Merge pull request #7028 from mikeller/add_crash_flip_led_warning
Added 'crash flip active' to the list of warnings to be shown on LED_STRIP.
2018-11-04 14:52:40 +13:00
Michael Keller a815486d56
Merge pull request #7006 from etracer65/dynfilter_throttle_update_optimize
Optimize throttle-based dynamic filter cutoff updates
2018-11-04 13:54:52 +13:00
Michael Keller 863ee8d114
Merge pull request #7034 from etracer65/level_mode_crash_recovery_delay
Prevent crash recovery detection immediately after entering self-level or GPS Rescue modes
2018-11-04 13:38:17 +13:00
mikeller 79fd505a8c Changed warning to only be shown when armed. 2018-11-04 13:37:39 +13:00
Michael Keller 887eada818
Merge pull request #7032 from etracer65/gps_rescue_yaw_rate
Reduce GPS Rescue max yaw rate
2018-11-04 13:15:58 +13:00
Michael Keller 50cd9a5f89
Merge pull request #7035 from etracer65/runaway_takeoff_throttle_pct
Reduce runaway takeoff deactivate throttle to 20%
2018-11-04 13:15:22 +13:00
Michael Keller 30b30566d7
Merge pull request #7036 from mikeller/fix_led_overlay_order
Fixed ordering of the LED_STRIP overlays.
2018-11-04 13:01:34 +13:00
Michael Keller 7ec824ddf9
Merge pull request #7037 from mikeller/make_firmware_fit_into_flash
Removed features from BETAFLIGHTF3, IMPULSERCF3, OMNIBUS to make the firmware fit into flash.
2018-11-04 12:57:45 +13:00
Bruce Luckcuck 957561c14c Add minimum time interval for updates and move into separate function
Prevents updates more often than 5ms even if throttle is very active.

Separated the logic into its own function to tidy up `mixTable()`.
2018-11-03 19:55:20 -04:00
Bruce Luckcuck 13e06d6e30 Reset the crash recovery guard time whenever GPS Rescue is activated
So now the guard time will be set either:
* When changing from level-mode off to on (angle or horizon modes)
* GPS Rescue activates
2018-11-03 19:42:34 -04:00
mikeller 286f21150c Unified warning activation conditions. 2018-11-03 19:25:43 +13:00
mikeller 3109c68ea1 Removed features from BETAFLIGHTF3, IMPULSERCF3, OMNIBUS to make the firmware fit into flash. 2018-11-03 18:11:18 +13:00
mikeller 09353a2b5d Fixed ordering of the LED_STRIP overlays. 2018-11-03 18:01:09 +13:00
Bruce Luckcuck bb834bb126 Prevent crash recovery detection immediately after entering self-level modes
If the quad is in an extreme orientation (like upside down) the transition to self-level modes can cause enough motion to trigger crash recovery. Added a 1 second delay during which crash recovery detection is blocked immediately after entering a self-level mode.

This also addresses an issue with GPS Rescue as when it activates it enables self-level. If in the above scenario this triggered a crash recovery detection then GPS Rescue would interpret this as a crash and immediately disarm.
2018-11-02 23:43:41 -04:00
Michael Keller 44f19bd128
Merge pull request #7021 from marv-t/ExBusDoc
Ex Bus docs for Rx and telemtry
2018-11-03 16:40:07 +13:00
Michael Keller 8a31801cd9
Merge pull request #7023 from etracer65/cli_map_default
Fix missing string terminator for CLI map command defaults output
2018-11-03 16:39:07 +13:00
Michael Keller 53be9eac21
Merge pull request #7022 from TonyBlit/gps_rescue_debug_fix
Minor fixes for debugging GPS Rescue
2018-11-03 16:19:15 +13:00
Michael Keller 36693be225
Merge pull request #7030 from MATEKSYS/master
Fixed GYRO/ACC ALIGN in MATEKF722SE target
2018-11-03 15:50:16 +13:00
Bruce Luckcuck cca3b30a77 Reduce runaway takeoff deactivate throttle to 20%
In recognition that the average quad is getting more powerful and can hover at a lower throttle.
2018-11-02 16:23:50 -04:00
Bruce Luckcuck d1251cbc39 Reduce GPS Rescue max yaw rate
Addresses concerns that the initial yaw to turn towards home might be overly agressive.
2018-11-02 07:30:15 -04:00
MATEKSYS 31c7b378fa Fixed GYRO/ACC ALIGN 2018-11-02 14:47:10 +08:00
Tony Cabello 686edcaffe GPS Rescue: New failure code for Stalled. Debug RTH is now updated regardless of the arrival of new GPS Data. 2018-11-02 07:19:25 +01:00