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
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
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
mikeller
99eab92200
Added 'crash flip active' to the list of warnings to be shown on LED_STRIP.
2018-11-02 01:48:06 +13:00
Michael Keller
0fae0a49c5
Merge pull request #7025 from MATEKSYS/master
...
Add MATEKF722SE Target
2018-11-02 01:45:49 +13:00
Michael Keller
c0344496ca
Merge pull request #6992 from etracer65/launch_control
...
Launch Control
2018-11-02 00:49:42 +13:00
Michael Keller
f4dbbace87
Merge pull request #6972 from mikeller/added_mpu6000_to_skyzonef405
...
Added MPU6000 support to SKYZONEF405 target.
2018-11-01 22:33:39 +13:00
Michael Keller
ace5017cc8
Merge pull request #6480 from pulquero/osd_frame_errors_3_5
...
Added frame quality to OSD.
2018-11-01 22:24:20 +13:00
jflyper
50df255c08
Merge pull request #7015 from jflyper/bfdev-reinstate-rangefinder-task
...
RANGEFINDER: Reinstate rangefinder task
2018-11-01 18:17:02 +09:00
Michael Keller
7f47d2745b
Merge pull request #7018 from TonyBlit/gps_rescue_restart_fix
...
Fix: Initialize internal variables on GPS Rescue Start
2018-11-01 22:08:36 +13:00
Michael Keller
965de2133f
Merge pull request #7017 from jflyper/bfdev-exti-for-f7hal
...
EXTI: Unified EXTIConfig for all MCU types
2018-11-01 22:06:20 +13:00
Michael Keller
b174bb7d12
Merge pull request #7014 from ctzsnooze/Updated-iTerm-defaults
...
Increase I and allow it to drive more in tight turns
2018-11-01 22:04:21 +13:00
MATEKSYS
6ec777d0fb
Add MATEKF722SE Target
2018-11-01 17:01:05 +08:00
Bruce Luckcuck
13a365dd35
Fix missing string terminator for CLI map command defaults output
2018-10-31 16:16:38 -04:00
Tony Cabello
a492b8d47d
Fix: Initialize internal variables on each GPS Rescue Start
2018-10-31 15:29:32 +01:00
Michael Keller
a18d48f533
Merge pull request #6978 from mikeller/add_serialpassthrough_reset
...
Added option to reset serial passthrough on drop of DTR.
2018-10-31 15:20:41 +13:00
jflyper
8a9bca2514
Unified EXTIConfig API for all MCU types
2018-10-31 07:59:27 +09:00
Bruce Luckcuck
b723d2976d
Changes from review and add unit tests
...
Stylistic updates and add tests to the PID unit tests to verify launch control behavior
2018-10-30 18:14:49 -04:00
Mark Hale
9b9a86e4c5
Added rx link quality indicator (based on rx frame error rate) to OSD.
2018-10-30 17:31:25 +00:00
Michael Keller
ccf18fe6a1
Merge pull request #7008 from jflyper/bfdev-jeti-telem-protect-GPS-related-funcitons
...
JETIEXBUS Telemetry: Conditional-ize GPS related functions with USE_GPS
2018-10-30 22:44:58 +13:00
jflyper
f788f062ea
Reinstate rangefinder task
2018-10-30 12:43:42 +09:00
ctzsnooze
de8df24857
Increase default amount of I for 4.0
2018-10-30 12:14:15 +11:00
Maciej Janowski
9656dbba40
Merge branch 'master' of https://github.com/betaflight/betaflight into motor-diag
...
# Conflicts:
# src/main/io/osd.c
# src/main/io/osd.h
# src/test/unit/osd_unittest.cc
2018-10-29 21:16:24 +01:00
Maciej Janowski
3d2d5a2efa
Initial implementation
...
Percentage implementation
Settings fix, formatting
Add support for different number of motors
Optimize and cut superfluous code
Hard-add mixer.h
Formatting adjustment to fit BF standards, linking error in unittest fix attempt
Add stubs and variables for unittests
Character based indicators
Change output to special characters
Fix spacing
Update test code, add variable
Include changes as per peer review
2018-10-29 21:09:46 +01:00
mikeller
b10737a9fd
Added option to reset serial passthrough on drop of DTR.
2018-10-29 22:16:44 +13:00
Michael Keller
0e7a4d6e11
Merge pull request #6998 from mikeller/remove_unused_modes
...
Remove unused BARO, GPS_HOME, GPS_HOLD modes.
2018-10-29 22:09:54 +13:00
Michael Keller
b0705caf6a
Merge pull request #6997 from mikeller/fix_fport_conditionals
...
Fixed build errors when building with USE_SERIALRX_FPORT but without USE_SERIALRX_SBUS or USE_TELEMETRY_SMARTPORT.
2018-10-29 22:09:37 +13:00
Michael Keller
74c0a3b66b
Merge pull request #6996 from mikeller/improved_frsky_x_spi
...
Added some improvements to FrSky X SPI.
2018-10-29 22:09:18 +13:00
Michael Keller
c386b77157
Merge pull request #7007 from jflyper/bfdev-drop-crsf-cms-telem-if-no-cms
...
Drop USE_CRSF_CMS_TELEMETRY if USE_CMS is not defined
2018-10-29 22:02:50 +13:00
borisbstyle
eeeec78c2d
Merge pull request #6981 from rav-rav/airmode_fix
...
fix incorrect throttle offset in airmode
2018-10-29 09:03:58 +01:00
jflyper
6c8f8138d9
Conditionalize GPS related functions with USE_GPS
2018-10-29 10:16:30 +09:00
jflyper
31e11c341c
Drop USE_CRSF_CMS_TELEMETRY if USE_CMS is not defined
2018-10-29 10:12:55 +09:00
Bruce Luckcuck
cbb1ac02cf
Optimize throttle-based dynamic filter cutoff updates
...
Current logic produces excessive load because it updates the filter cutoffs every PID loop based on the throttle value.
The throttle values only change based on receive RX packets so they change relatively infrequently compared to the PID loop. However with rc smoothing on throttle the value can change every PID loop. But in reality we don't really need to adjust the filter cutoffs for every tiny change to the floating point throttle value.
This change quantizes the throttle in to 100 steps and uses that to compare to the previous value to decide if the filter cutoffs need to be updated. While this reduces the resolution of the filter cutoffs it in turn dramatically reduces the processing overhead. IF needed the quantization steps can be increased for more resolution but at the cost of some performance.
2018-10-28 19:00:05 -04:00
Michael Keller
71c563fdb4
Merge pull request #6977 from mikeller/remove_skip_defines
...
Converted 'SKIP_' defines to 'USE_'.
2018-10-29 07:37:10 +13:00
mikeller
7b7ddd099f
Remove unused BARO, GPS_HOME, GPS_HOLD modes.
2018-10-29 00:50:44 +13:00
mikeller
45d8de2d6a
Fixed build errors when building with USE_SERIALRX_FPORT but without USE_SERIALRX_SBUS or USE_TELEMETRY_SMARTPORT.
2018-10-29 00:12:03 +13:00
mikeller
fa542cc02d
Added some improvements to FrSky X SPI.
2018-10-28 21:47:07 +13:00
Michael Keller
c677b1c19c
Merge pull request #6985 from AlienWiiBF/GYRO_cleanup
...
Gryro configuration parameters cleanup
2018-10-28 19:09:38 +13:00
Bruce Luckcuck
e4dc93b128
Launch Control
...
Adds a race start assistance system that allows the pilot to pitch forward and then release the sticks with the quad holding position for the race start.
2018-10-27 11:50:37 -04:00
Michael Keller
8609346f21
Merge pull request #6943 from kmitchel/dynamic_lowpass
...
Implement throttle based dynamic gyro and dterm filters.
2018-10-27 19:24:16 +13:00
Michael Keller
a35b310851
Merge pull request #6979 from etracer65/gps_rescue_motor_stop_fix
...
Prevent MOTOR_STOP and auto-disarm for stick arming when GPS Rescue is active
2018-10-27 19:16:36 +13:00