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

11720 commits

Author SHA1 Message Date
mikeller
4eaf28f4da Fixed GPS init on SmartPort. 2018-06-24 12:39:03 +12:00
Michael Keller
95dcce8471
Merge pull request #6194 from etracer65/rc_smoothing_retraining
RC smoothing retraining update - adds full support for CRSF
2018-06-24 10:24:28 +12:00
Bruce Luckcuck
dbdbc4819a Fix FAST_RAM_ZERO_INIT for static variable. 2018-06-23 15:46:58 -04:00
Bruce Luckcuck
d663c478ab Changes from review; use union struct for filters; cleanup/tidy; save about 200 bytes on F3
Changed main storage structure to use union for the filters.

Renamed storage variable passed to the sub functions to avoid confusion with the global static.

Added whitespace to separate logical blocks and added additional comments to make the code more readable.

Restructured derivative filter initialization/update logic.
2018-06-23 15:01:14 -04:00
Michael Keller
c7135a3e2a
Merge pull request #6199 from mikeller/fix_beeper_dump
Fixed off by one in beeper diff / dump.
2018-06-24 02:26:09 +12:00
Bruce Luckcuck
e9b086a879 Refactor static variables into a structure
Cleans up the many static variables into a single structure. Saves ~60 bytes on F3 but far more importantly will allow the support functions to be easily moved to a size optimized file at some later date.
2018-06-23 10:16:54 -04:00
mikeller
6a2e59f248 Fixed off by one in beeper diff / dump. 2018-06-24 01:05:14 +12:00
Michael Keller
16a28fcce6
Merge pull request #6195 from jflyper/Fix-bad-range-for-3d_deadband_throttle
Fix bad range for 3d_deadband_throttle
2018-06-23 22:26:46 +12:00
Andrey Mironov
4c1495208d
Merge pull request #6193 from dbasch/master
GPS Rescue fix (rescueYaw needs to be signed)
2018-06-23 12:04:37 +03:00
jflyper
23e18069ff Fix bad range for 3d_deadband_throttle 2018-06-23 09:13:41 +09:00
Bruce Luckcuck
1982c94780 RC smoothing retraining update - adds full support for CRSF
Adds in flight monitoring of the rx frame rate and adapts the filters if the frame rate changes. Primarily to add support for Crossfire with its ability to switch from 150hz to 50hz (and back) under some circumstances. Will work with any protocol - not CRSF specific.   So if future receivers add the ability to switch frame rates dynamically the logic should support them.

If the current rx frame rate is more than +-20% from the previously detected rate, then the process will retrain for the next 50 samples as long as the rate continues to be outside the 20% tolerance. Once 50 samples are collected the new frame rate is updated and the filter cutoffs are adjusted. Only filters set with their cutoffs = 0 (auto) will be adjusted. There is a 2 second guard time after a successful update before retraining can start again to prevent rapid switching back and forth.

The logic is optimized to not perform any training if the filters are set to manual cutoffs. So there is an opportunity for advanced users to choose specific cutoffs and reduce the PID loop load slightly. However this is not recommended for Crossfire or other protocols that might change their rx frame rate.

Updated the output of the `rc_smoothing_info` cli command to match the revised logic.
2018-06-22 20:10:06 -04:00
Diego Basch
d8b440948a Merge remote-tracking branch 'upstream/master' 2018-06-22 16:57:42 -07:00
Diego Basch
1f738f5aa4 rescueYaw should be signed 2018-06-22 16:56:38 -07:00
Michael Keller
6acbed6d6e
Merge pull request #6176 from Scavanger/Add-single-wire-in-HoTT-Doc
Added a hint of the HoTT single wire connection in Documentaion
2018-06-20 20:41:06 +12:00
Michael Keller
fb5d0e6dc6
Merge pull request #6173 from jflyper/bfdev-allow-pwm-and-softserial-to-coexist
Don't let PWM reset SOFTSERIAL
2018-06-20 20:19:57 +12:00
Scavanger
b907e584d1
Update Telemetry.md 2018-06-20 09:12:56 +02:00
jflyper
8f65a79789 Remove RX_PARALLEL_PWM originated feature validation based on pins 2018-06-20 11:04:02 +09:00
Michael Keller
2d8c97e82d
Merge pull request #6161 from dbasch/altitude-offset-fix
[GPS Rescue] - Wait for altitude offset to be applied before updating idleTask data
2018-06-20 13:39:00 +12:00
s0up
ce1a3edc03 put altitude offset getter within same ifdef as calculate estimated altitude 2018-06-19 09:06:29 -07:00
Michael Keller
713e72321b
Merge pull request #6166 from etracer65/gps_rescue_heading_fix
Fix gps rescue heading edge case
2018-06-20 01:02:56 +12:00
Michael Keller
c6a5ab9b96
Merge pull request #6096 from AirBreak69/GPS_handle_negative_altitude_and_safer_maths_macros
GPS: handle negative and high altitudes; safer macros in maths.h
2018-06-20 01:01:02 +12:00
Michael Keller
1757ec5d16
Merge pull request #6165 from mikeller/increase_travis_cache_timeout
Increased travis cache load timeout to stop cache load (and SDK install) from failing.
2018-06-20 00:38:33 +12:00
Bruce Luckcuck
e83d5a6fc7 Fix gps rescue heading edge case
The yaw heading calculation didn't handle edge cases like 180 and -180 well.  Also cleaned up coding style.
2018-06-19 08:01:44 -04:00
mikeller
c020e5df4a Increased travis cache load timeout to stop cache load (and SDK install) from failing. 2018-06-19 23:28:27 +12:00
s0up
911c8e406c wait for altitude offset to be applied before updating idleTask data 2018-06-18 14:43:35 -07:00
AirBreak69
91ac74ca9c
Scale MSP altitude back to 1m per lsb as it was before RTH 2018-06-18 23:16:52 +02:00
Michael Keller
babebe32f2
Merge pull request #6153 from AndersHoglund/travis_verbosity
Set low verbosity in Travis. Logs are too big for Travis to handle.
2018-06-18 22:25:32 +12:00
Anders Hoglund
8da66004e5 Set low verbosity in Travis. Logs are too big for Travis to handle. 2018-06-18 11:19:47 +02:00
Michael Keller
0824c6fda5
Merge pull request #6141 from jflyper/bfdev-fix-f4-led-strip-dma
F4 DMA buffer should not reside in CCM
2018-06-18 07:43:33 +12:00
jflyper
c2a37262a0 F4 dma buffer should not reside in CCM 2018-06-18 02:21:13 +09:00
Michael Keller
2fe9d79903
Merge pull request #6126 from mikeller/fix_pid_loop_overloading
Removed tasks from PID loop that don't belong there.
2018-06-17 20:08:56 +12:00
mikeller
f412e17e89 More USB include woes. 2018-06-17 17:54:18 +12:00
mikeller
448885bfc5 Fixed USB CDC includes. 2018-06-17 16:38:16 +12:00
mikeller
9492899aeb Made it fit on SIRINFPV. 2018-06-17 13:42:30 +12:00
mikeller
40f0c87906 Increased task frequency for the main task. 2018-06-17 13:40:15 +12:00
mikeller
ad9a06289f Added workaround for target independence test. 2018-06-17 13:40:15 +12:00
mikeller
1bd502e9ac Removed function declaration. 2018-06-17 13:40:15 +12:00
mikeller
d2c2bc3155 Reinstated USB connection debug. 2018-06-17 13:39:39 +12:00
mikeller
8107ad254c Fixed special case for SPRACINGF3OSD, fixed tests. 2018-06-17 13:39:39 +12:00
mikeller
afb6068400 Removed tasks from PID loop that don't belong there. 2018-06-17 13:39:39 +12:00
Michael Keller
a7fae6b8f0
Merge pull request #6099 from mikeller/fixed_usb_hid_channel_mapping
Fixed USB HID channel mapping in Windows.
2018-06-17 13:38:03 +12:00
Michael Keller
1fdef20bfc
Merge pull request #6121 from AlienWiiBF/QMC5883L_fix
Fix wrong QMC5883L mag detection
2018-06-17 13:36:02 +12:00
Michael Keller
0dd43c92dc
Merge pull request #6132 from mikeller/fix_pid_loop_slowness
Remove GPS rescue update from PID loop.
2018-06-17 13:35:39 +12:00
Michael Keller
9c55617f05
Merge pull request #6130 from mikeller/fix_dshot_commands_2
Stop Dshot commands from running when ESCs not disarmed.
2018-06-17 12:05:20 +12:00
Michael Keller
319b85777b
Merge pull request #6113 from etracer65/turtle_mode_disarm_cleanup
Only reset motor directon on disarming when crash flip mode was active
2018-06-17 11:41:30 +12:00
Michael Keller
7215505934
Merge pull request #6127 from mikeller/jh_fix_rtc_leap_offset
[From iNav] change year base for RTC time_t to correct leap processing
2018-06-17 11:27:16 +12:00
Michael Keller
8a597c3228
Merge pull request #6131 from DieHertz/fix-f7-ledstrip
Marked LED DMA buffer FAST_RAM
2018-06-17 09:19:33 +12:00
mikeller
f067324844 Fixed extra repeat. 2018-06-17 03:07:10 +12:00
Michael Keller
609e304643
Merge pull request #6122 from dbasch/performance-fix
[GPS Rescue] - Fix the calculation of acceleration magnitude average to run at gps u…
2018-06-17 02:36:48 +12:00
mikeller
f129f7913c Added injection for GPS rescue commands. 2018-06-17 02:35:53 +12:00