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

12025 commits

Author SHA1 Message Date
mikeller
a456f00b36 Cleaned up image location for board documentation. 2018-06-30 22:44:07 +12:00
Michael Keller
c6c3d0b5af
Merge pull request #6235 from etracer65/throttle_angle_correction
Fix throttle angle correction when smoothing throttle; reduce processing overhead
2018-06-30 18:46:51 +12:00
Michael Keller
3342f07c10
Merge pull request #6241 from mikeller/set_yaw_d_default_to_0
Set yaw D default to 0 since it is unused anyway.
2018-06-30 17:53:08 +12:00
Michael Keller
dc6d85acef
Merge pull request #6242 from mikeller/fix_flash_size
Fixed firmware size issue on FURYF3OSD and STM32F3DISCOVERY.
2018-06-30 17:51:39 +12:00
mikeller
673ff77beb Fixed firmware size issue on FURYF3OSD and STM32F3DISCOVERY. 2018-06-30 16:40:57 +12:00
mikeller
00228427da Set yaw D default to 0 since it is unused anyway. 2018-06-30 15:25:50 +12:00
Michael Keller
6b6ad463df
Merge pull request #6227 from etracer65/gps_rescue_controls_fix
Revise GPS Rescue throttle and yaw handling to not modify rcCommand
2018-06-30 14:48:22 +12:00
Michael Keller
dfb19981db
Merge pull request #6213 from azolyoung/fixed_open_connection_bug_and_timeout_processing
fixed open connection twice times and timeout logic
2018-06-30 14:45:56 +12:00
Bruce Luckcuck
5cd886017d Fix throttle angle correction when smoothing throttle; reduce processing overhead
Change the logic to not modify rcCommand directly and instead apply the additional throttle directly in the mixer.

Also move the logic to the attitude task instead of having it calculate in the PID loop. The logic relies on an angle that's only updated in the attitude task so there was no point in running the calculation every PID loop.
2018-06-28 15:56:01 -04:00
leocb
7df8075fa3 OSD G-force Fix unit test; use sqrtf 2018-06-28 16:15:16 -03:00
leocb
51e57199fb OSD G-force - Fixes compile errors and optimize math 2018-06-28 12:16:25 -03:00
leocb
0ab2638b31 OSD G-force - requested changes 2018-06-28 11:32:37 -03:00
azol
8b98528590 fixed open connection twice times and timeout logic 2018-06-28 21:00:54 +08:00
Bruce Luckcuck
9b49d481e3 Fix setpoint rate sign, optimize code, cleanup from review
Also adds a `scaleRangef()` function to math.c
2018-06-27 19:27:22 -04:00
leocb
e2eca1b762 Added G-Force to the OSD 2018-06-27 13:56:26 -03:00
Bruce Luckcuck
0cd61c3a0f Revise yaw rate calculation and defaults 2018-06-27 11:10:52 -04:00
Bruce Luckcuck
9868557c11 Revise GPS Rescue throttle and yaw handling to not modify rcCommand
Injecting new values directly into rcCommand to override pilot inputs does not work correctly when rc interpolation or smoothing is enabled. This is because the smoothing functions maintain an internal state that is used to produce the final rcCommand values. So in effect it re-overrides the values set by GPS Rescue.

Additionally, modifying rcCommand directly is undesirable because:
- It happens before rates are applied. So the pilot's rates will effect the control commanded by GPS Rescue.
- rcCommand values are used for more than input in the flight control. They also are used for stick commands, etc.
- In the case of throttle, various modifications can be additionally applied like throttle boost and throttle limit that may negatively effect GPS Rescue.

These changes revise the logic to only modify the commanded values used in the PID controller (yaw) and mixer (throttle) rather than attempting to override rcCommand.
2018-06-27 10:37:52 -04:00
Michael Keller
e260c37be3
Merge pull request #6221 from DieHertz/bfdev-fix-f411-bootloader-request
Fixed call to checkBootloaderRequest()
2018-06-27 00:32:48 +12:00
Andrey Mironov
560f90f451 Fixed call to checkBootloaderRequest() 2018-06-26 12:47:00 +03:00
Michael Keller
2f1f07d186
Merge pull request #6077 from jhalfmoon/jhalfmoon-crazybee-doc-update
Added a list of known issues for the CrazyBee FC
2018-06-26 19:29:17 +12:00
Michael Keller
1c081ae8c3
Merge pull request #6204 from mikeller/fix_rearming_without_gps_fix
Enabled rearming with 'GPS rescue' enabled and no GPS fix.
2018-06-24 21:29:36 +12:00
Michael Keller
c208d57ac6
Merge pull request #6196 from azolyoung/change_rcsplit_protocol_to_async
Change rcsplit protocol to async
2018-06-24 20:39:10 +12:00
Michael Keller
52b6bf55fa
Merge pull request #6201 from dbasch/failsafe-fix
[GPS Rescue] - Failsafe fix
2018-06-24 17:08:51 +12:00
mikeller
30b148c5c7 Enabled rearming with 'GPS rescue' enabled and no GPS fix. 2018-06-24 15:30:31 +12:00
s0up
44a790e64b Merge branch 'master' of github.com:betaflight/betaflight into failsafe-fix 2018-06-23 19:27:33 -07:00
Michael Keller
e9494c8c60
Merge pull request #6202 from mikeller/fix_gps_on_smartport
Fixed GPS init on SmartPort.
2018-06-24 14:24:13 +12:00
azolyoung
5967b9b597 fixed the coding-style issues 2018-06-24 10:23:11 +08:00
Michael Keller
340156618b
Merge pull request #6188 from mikeller/swap_osd_new_tuning
Swapping external Betaflight OSD support on F3 for new tuning features.
2018-06-24 14:22:04 +12:00
mikeller
fecfd36825 Enabled gyro LPF2 on SPRACINGF3NEO. 2018-06-24 13:47:05 +12:00
mikeller
e9ab1daf5d More feature slashing. 2018-06-24 12:47:57 +12:00
mikeller
4eaf28f4da Fixed GPS init on SmartPort. 2018-06-24 12:39:03 +12:00
mikeller
d766bcd2e7 More flash space wrangling. 2018-06-24 12:02:15 +12:00
mikeller
7b4b47829e Fixed SPRACINGF3NEO. 2018-06-24 10:32:20 +12:00
mikeller
79fd0b2c05 Dance around the volcano with STM32F3DISCOVERY. 2018-06-24 10:32:20 +12:00
mikeller
f3ef37d97e More firmware size squeezing. 2018-06-24 10:32:20 +12:00
mikeller
eb1ea7047e Automated definition of USE_OSD for targets with OSD hardware. 2018-06-24 10:32:20 +12:00
mikeller
6c3b0470ec Re-added OSD support to OMNIBUS. 2018-06-24 10:32:19 +12:00
Michael Keller
83500631cf Disabled features to make it fit. 2018-06-24 10:32:19 +12:00
Michael Keller
cc3a7c063d Disabled features to make it fit. 2018-06-24 10:32:19 +12:00
Michael Keller
a160df792e Disabled features to make it fit. 2018-06-24 10:32:19 +12:00
Michael Keller
f8f1f27d28 Spapping external Betaflight OSD support on F3 for new tuning features. 2018-06-24 10:32:19 +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
azol
5b2dd46367 avoid change camera mode and turn on wifi when arming 2018-06-23 13:43:26 +08:00