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

15067 commits

Author SHA1 Message Date
mikeller
aab936268f Added manufacturer id for FPV Model. 2019-09-19 22:36:34 +12:00
Michael Keller
4af1127d7a
Increase Tramp retry count and fix lockup if VTX out-of-sync wi… (#8903)
Increase Tramp retry count and fix lockup if VTX out-of-sync with band/channel settings
2019-09-19 22:27:11 +12:00
Michael Keller
fc690c32a3
Merge pull request #8898 from mikeller/move_unified_target_configurations
Move unified target configurations and update the documentation
2019-09-19 06:24:17 +12:00
Bruce Luckcuck
6560f80dad Revert Tramp power max check when setting power
The maximum power capability supplied from different VTX models is inconsistent. Sometimes correctly representing the VTX's capabilities, while for others not accurate or misrepresentative. So the previously added check is preventing accessing power levels in cases where the VTX doesn't properly report its max limit.
2019-09-18 10:09:34 -04:00
Bruce Luckcuck
7e04a9666c Increase Tramp retry count and fix lockup if VTX out-of-sync with band/channel settings
Some VTX don't respond to every request so it's necessary to retransmit. A previous PR fixed a bug that caused more retries than expected and made the actual retries only be 2 as configured. Unfortunately this exposed the problem with the non-responding VTX with cases of it not responding to both retries. The problem was accidentally masked by a previous bug with the retry counter causing many retries to actually occur.

This then exposed a secondary problem in `vtx_common` that lead to a "lockup" condition if the actual VTX channel didn't match our expectation of what the channel should be based on the settings. We were getting into this state because of the (now working) retry limit and cases where the VTX didn't respond and change channels as expected.

Increased the retry count to 20.

Fixed the logic that would prevent subsequent channel changes if the actual VTX channel didn't match the expected value based on the settings. Also fixed a problem where the channel change would not work if the VTX was on a frequency that was not defined in `vtxtable`.
2019-09-17 18:11:51 -04:00
Michael Keller
e53ba96558
Merge pull request #8899 from mikeller/fixed_checks
Fixed checks and added target for all checks.
2019-09-18 02:20:35 +12:00
Michael Keller
dd2b0b9763
Merge pull request #8893 from joelucid/bitbang_prefer_tim8
prefer timer 8 for dshot_bitbang
2019-09-17 12:10:56 +12:00
Michael Keller
1d0afd8d50
Merge pull request #8897 from warhog/master
Removed usage of UNUSED macro for motorCount as motorCount is used now
2019-09-17 12:09:46 +12:00
mikeller
7830c1d2ab Moved Unified Target configurations into their own repository. 2019-09-17 12:03:30 +12:00
Michael Keller
b577c22b30
Target AIRF7 (#8748)
Target AIRF7
2019-09-17 01:07:36 +12:00
mikeller
15c57c0f3d Fixed checks and added target for all checks. 2019-09-16 23:29:28 +12:00
x4FF3
2fa442a419 Target AIRF7
This reverts commit aa13b6da778232df5730c6bd88b7e830aee6f7e4.

fixes

change TBI and MID

add first line
2019-09-16 22:05:44 +12:00
warhog
7b9114d0d8 removed UNUSED macro for motorCount as motorCount is used in line 213 since commit ccf7ce964a 2019-09-15 21:11:10 +02:00
Michael Keller
d3c10a6bc3
Add TBS Unify Pro32 examples (#8887)
Add TBS Unify Pro32 examples
2019-09-16 01:20:51 +12:00
Thorsten Laux
9ed18b78b3 prefer timer 8 for dshot_bitbang 2019-09-15 14:35:42 +02:00
Michael Keller
644ab5d905
prevent using same timer channel twice (#8886)
prevent using same timer channel twice
2019-09-15 20:35:49 +12:00
Michael Keller
3bf89decdd
Update target config for FLYWOOF7DUAL,F405,F411 (#8750)
Update target config for FLYWOOF7DUAL,F405,F411
2019-09-15 10:41:26 +12:00
SteveCEvans
af71c994d9 Remove duplicates 2019-09-14 13:50:50 +01:00
Michael Keller
7e160e1380
Fix an erroneous constant in the calculation of altitude from b… (#8874)
Fix an erroneous constant in the calculation of altitude from barometric pressure.
2019-09-15 00:43:42 +12:00
SteveCEvans
83f55a9115 Fix some missing new lines which were breaking tables 2019-09-14 13:39:26 +01:00
SteveCEvans
91c24b5793 Add TBS Unify Pro32 examples 2019-09-14 13:33:03 +01:00
flywoo
485526e6ec Update target config for FLYWOOF7DUAL,F405,F411 2019-09-14 19:06:28 +08:00
Michael Keller
6f6ab50fb3
Make crash recovery settings limits rational to prevent infinit… (#8871)
Make crash recovery settings limits rational to prevent infinite crash recovery and controls lockout
2019-09-14 22:50:13 +12:00
Thorsten Laux
b29329c061 prevent using same timer channel twice 2019-09-14 09:09:52 +02:00
Bruce Luckcuck
26c5e6aae2 Revert crash_time timeout handling changes 2019-09-12 19:53:38 -04:00
Bruce Luckcuck
381b38ca52 Fix crash recovery timeout logic and make settings limits rational
Timeout logic was ignored if the user had the accelerometer enabled and the quad wasn't within the angle limit. This was made doubly troublesome as the angle limit could be set to zero preventing crash recovery from ever deactivating.

Also adjusted the ranges of the parameters to be more rational to avoid invalid configurations.
2019-09-12 19:53:38 -04:00
Michael Keller
4433dbb518
Add missing vtxStatus variable initialization in MSP_VTX_CONFIG (#8869)
Add missing vtxStatus variable initialization in MSP_VTX_CONFIG
2019-09-13 09:31:04 +12:00
Michael Keller
a29ba5f00b
Prevent runaway takeoff detection during GPS Rescue flight mode (#8870)
Prevent runaway takeoff detection during GPS Rescue flight mode
2019-09-13 09:28:50 +12:00
Michael Keller
9db60720a8
Fix faulty timer allocation in bitbanged Dshot. (#8865)
Fix faulty timer allocation in bitbanged Dshot.
2019-09-13 08:46:36 +12:00
John Polstra
cc1b8e3e39 Fix an erroneous constant in the calculation of altitude from
barometric pressure.  The commit which introduced the error was:

35f0a8e4b0

It transposed (inadvertently, I believe) the last two digits of the
constant 0.190259f.  A nearby comment references code in Ardupilot,
in which the constant is 0.190259f.
2019-09-12 12:52:16 -07:00
mikeller
65be79c86a Fix faulty timer allocation in bitbanged Dshot. 2019-09-13 00:29:09 +12:00
Michael Keller
06f682757d
Add missing boundary checks in vtx_common for band, channel and… (#8866)
Add missing boundary checks in vtx_common for band, channel and powerlevel index
2019-09-12 23:07:10 +12:00
Michael Keller
63fab4771c
improvements to ff_boost for 4.1 RC's (#8864)
improvements to ff_boost for 4.1 RC's
2019-09-12 07:43:22 +12:00
Michael Keller
1c7b099cee
Removed unavailable timers from STM32F411. (#8860)
Removed unavailable timers from STM32F411.
2019-09-12 06:48:38 +12:00
Bruce Luckcuck
7c52886b22 Prevent runaway takeoff detection during GPS Rescue flight mode
Addesses the possible edge case of runaway takeoff detection still being active and getting triggered by the quick yaw turn when GPS Rescue is activated.
2019-09-11 12:20:36 -04:00
Bruce Luckcuck
ad4d46a1f9 Add missing variable initialization in MSP_VTX_CONFIG
If the `vtxDevice` was not valid then the `vtxStatus` variable never got initialized but was still used in the pit mode flag determination - leading to random behavior.
2019-09-11 09:00:51 -04:00
Bruce Luckcuck
1138c4dd6a Add missing boundary checks in vtx_common for band, channel and powerlevel index
Previously there were cases where the input was not compared to the currently defined vtxtable limits and this could lead to a wedge as code referenced the uninitialize string arrays.
2019-09-10 18:38:54 -04:00
Michael Keller
2a18209492
Fixed problems with bitbanged Dshot and lazily allocated timers. (#8861)
Fixed problems with bitbanged Dshot and lazily allocated timers.
2019-09-11 01:21:59 +12:00
ctzsnooze
c2c9fe699a allow boost on stick return despite suppressing it on way out. 2019-09-10 22:22:22 +10:00
ctzsnooze
582e42506a tidy up code 2019-09-10 20:05:50 +10:00
ctzsnooze
e1a8a80584 fixes for ff_boost
1.  Excludes yaw from ff_boost.
2.  Removes suppression for 3x greater up-steps in FF to reduce boost glitching around zero sticks
3.  Spike detection gets cleaner passband and tighter rejection above threshold; higher threshold is now possible with better suppression of large spikes.
2019-09-10 19:11:04 +10:00
mikeller
672a1f737f Removed unavailable timers from STM32F411. 2019-09-10 15:36:56 +12:00
Michael Keller
aeaf1acf4d
Add dyn notch to blackbox header (#8856)
Add dyn notch to blackbox header
2019-09-10 15:18:50 +12:00
Michael Keller
d5897528ed
Fix F411 pacing timer selection (#8853)
Fix F411 pacing timer selection
2019-09-10 15:16:00 +12:00
Michael Keller
99bd45d13c Added target specific defines for bitbanged Dshot. 2019-09-10 13:40:10 +12:00
mikeller
2b98f137db Fixed problems with bitbanged Dshot and lazily allocated timers. 2019-09-10 01:48:25 +12:00
Michael Keller
534dc31ab3
update unified configs - MatekF4Mini and MatekF7Mini (#8851)
update unified configs - MatekF4Mini and MatekF7Mini
2019-09-10 01:06:52 +12:00
Michael Keller
91b4129a48
Fix the problem of multiple timer allocations with bitbanged Ds… (#8852)
Fix the problem of multiple timer allocations with bitbanged Dshot.
2019-09-10 01:06:31 +12:00
Michael Keller
02794671fb
Added Unified Target configuration for AIKONF4. (#8850)
Added Unified Target configuration for AIKONF4.
2019-09-09 23:30:04 +12:00
Michael Keller
167b9f2e96
Fixed 'sd_info' showing incorrect information when SD card not… (#8849)
Fixed 'sd_info' showing incorrect information when SD card not configured.
2019-09-09 23:28:35 +12:00