1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00
Commit graph

5678 commits

Author SHA1 Message Date
James Betker
3cc398e23e Add Synthetic Spektrum RSSI from fade counter
The Spektrum satellites, when in "slave" or "external"
mode, continously output a counter of lost frames.
By keeping track of how quickly this counter is incrementing,
a pseudo-RSSI can be generated.

This patch:
- Adds a calculation method for generating an RSSI figure from
  the Spektrum fade counter.
- Adds a new configuration option, spektrum_rssi_enabled, which
  takes over rssi_channel and feeds the synthetic RSSI into it
  (on Spektrum RX's only)

Known Limitations:
- The fade counter only works with the satellite is in external mode,
   which is *not* the case when it is bound to the TX via the FC. You
   *must* bind the satellite the old-school way using another RX.
- Total signal loss freezes the RSSI figure (it will not indicate 0%)
- Spektrum RSSI is more "sensitive" than other RSSI figures due to
   the fact it is based on packet loss. What this means is that you will
   generally be flying at 100% signal, even near the boundaries of signal
   loss. Signal loss will occur quickly such that if you see anything below
   75% or so you should immediately turn back.

Testing Instructions:
- Bind a speksat using an external RC RX, not via the FC.
- Configure FC using following commands:
set rssi_channel = 9
save
- Fly quadcopter with whatever RSSI reporting mechanism you use.
2016-10-17 17:46:20 -07:00
borisbstyle
bfc5832149 Merge branch 'master' into development 2016-10-17 11:09:03 +02:00
borisbstyle
4c698b8283 Merge branch 'development' of https://github.com/borisbstyle/betaflight into development 2016-10-17 11:06:35 +02:00
borisbstyle
ddbdb58052 Add Default Feature Motor Stop To BEEBRAIN 2016-10-17 11:05:59 +02:00
borisbstyle
68424ff563 Add Default Feature Motor Stop To BEEBRAIN 2016-10-17 10:57:57 +02:00
borisbstyle
a9d6d60989 Merge pull request #1335 from kc10kevin/development_ICM20689Fix
ICM20689 Gyro Fix
2016-10-17 08:27:28 +02:00
Martin Budden
aac888e3c0 Merge pull request #1327 from blckmn/ppm_pin_selection
Fixed up PPM allocation
2016-10-17 07:23:31 +01:00
Martin Budden
4a71f5046c Merge pull request #1333 from blckmn/revert_timer
Revert "Remove superfluous timerHardware properties"
2016-10-17 06:57:02 +01:00
J Blackman
cbfd45f3af Merge pull request #1334 from kc10kevin/development_FuryFix
FuryF3 Target Fixup
2016-10-17 13:54:08 +11:00
kc10kevin
6dbded7071 ICM20689 Gyro Fix 2016-10-16 20:28:53 -05:00
kc10kevin
1c3f327c42 FuryF3 Target Fixup 2016-10-16 19:59:14 -05:00
blckmn
e840bbe83c Revert "Remove superfluous timerHardware properties"
This reverts commit 4924894f41.

Just too many combinations on the F3 for using a simple mapping table - wastes too much memory.
Will move LED Strip to allocation based on timerHardware_t array once DSHOT is merged (uses same dma requirements).
2016-10-17 11:24:59 +11:00
Anders Höglund
c96bb34fda Merge pull request #1331 from AndersHoglund/testsystem
Added junittest XML test results.
2016-10-16 21:51:18 +02:00
Anders Hoglund
15d9eaffd4 Added junittest XML test results. 2016-10-16 17:48:31 +02:00
Martin Budden
c5042e2099 Merge pull request #1329 from martinbudden/bf_msp_file_renames
Renamed some MSP related files
2016-10-16 13:37:33 +01:00
Martin Budden
b309f95894 Merge pull request #1328 from martinbudden/bf_unit_tests
Got unit tests working by removing non-working tests
2016-10-16 13:35:32 +01:00
Martin Budden
f6bcbff239 Got alignsensor unit test working 2016-10-16 12:51:30 +01:00
Martin Budden
5f791cef77 Renamed some MSP related files 2016-10-16 11:13:38 +01:00
Martin Budden
2e71ac3b84 Got unit tests working by removing non-working tests 2016-10-16 10:12:41 +01:00
J Blackman
84c6672967 Merge pull request #1297 from martinbudden/bf_msp_split_stage4
MSP split stage4 - Better split between MSP and serial
2016-10-16 19:59:03 +11:00
J Blackman
1114404c82 Merge pull request #1326 from martinbudden/bf_update_fns
Improved consistency of update fn naming. GPS update tidy.
2016-10-16 19:58:38 +11:00
blckmn
54655ae12f Fixed up PPM alllocation 2016-10-16 19:53:57 +11:00
Martin Budden
781450fece Merge pull request #1325 from Faduf/development
New Target to dev branch : YupiF4
2016-10-16 08:25:05 +01:00
Martin Budden
c0d87ca657 Improved consistency of update fn naming. GPS update tidy. 2016-10-16 08:18:03 +01:00
Faduf
afb4880096 Update fake_travis_build.sh 2016-10-16 08:33:26 +02:00
francoisduf
2e5320c4b1 add Yupi Target 2016-10-15 21:47:36 +02:00
Martin Budden
1d6240c9d5 Merge pull request #1208 from mikeller/cleanup_ledstrip_blink_frequency
Cleaned up LED_STRIP indicator blink frequency calculation.
2016-10-15 13:24:41 +01:00
Martin Budden
e15bafe6e7 Further reorganisation of MSP 2016-10-15 10:21:13 +01:00
Martin Budden
5ac94a94e7 Merge pull request #1295 from mikeller/fix_gyro_notch_2_msp
Fix MSP setting of gyro notch 2 values.
2016-10-15 09:26:05 +01:00
Martin Budden
a72d2f2b61 Merge pull request #1322 from blckmn/timer_tidy
Tidy: Remove superfluous timerHardware properties
2016-10-15 09:22:06 +01:00
blckmn
4924894f41 Remove superfluous timerHardware properties
-> todo: remove the IO_CFG definitions and add flags for purpose
2016-10-15 17:04:45 +11:00
J Blackman
addbbe06fa Merge pull request #1316 from martinbudden/bf_extra_baudrates
Added additional baudrates
2016-10-15 15:54:55 +11:00
blckmn
e65a77e87e ibus merge fix 2016-10-15 10:53:28 +11:00
blckmn
ac74764740 Merge branch 'betaflight_master' into development
# Conflicts:
#	src/main/common/filter.c
#	src/main/common/filter.h
#	src/main/flight/pid.c
#	src/main/rx/ibus.c
#	src/main/target/NAZE/config.c
#	src/main/target/NAZE/target.h
2016-10-15 10:52:27 +11:00
Martin Budden
699e736f0b Added higher baudrates to support openlager 2016-10-14 23:18:05 +01:00
Martin Budden
69719788cb Merge pull request #1223 from mikeller/add_fast_msp_support_to_cli
Added support for setting fast MSP bitrates in CLI.
2016-10-14 23:09:44 +01:00
Martin Budden
31c3f9bb54 Added additional baudrates 2016-10-14 23:05:00 +01:00
J Blackman
bb5a5b2030 Merge pull request #1320 from isilcala/development
Fix pwm value overflow for Brushed when mincommand is set below 1000
2016-10-15 06:59:09 +11:00
J Blackman
f68364fc33 Merge pull request #1279 from JeffyW/ibus
add support for flysky and turnigy ibus receiver ia6
2016-10-15 06:31:08 +11:00
isilcala
68607253ea Fix pwm value overflow for Brushed when mincommand is set below 1000 2016-10-14 21:46:55 +08:00
Martin Budden
6eb60ad003 Merge pull request #1318 from Wind0r/fix_unused_error
fixed unused dataSize error
2016-10-13 18:59:20 +01:00
Martin Budden
5bce6ecb2f Merge pull request #1303 from martinbudden/bf_rx_tidy
Changed function order in RX modules to avoid function forward declarations
2016-10-13 18:21:57 +01:00
Anders Höglund
935e5b0163 Merge pull request #1313 from martinbudden/bf_mk_tidy
Tidied .mk files
2016-10-13 19:09:46 +02:00
Steffen Windoffer
95fd326c3f fixed unused dataSize error 2016-10-13 18:47:41 +02:00
Martin Budden
108a17d0f9 Merge pull request #1315 from martinbudden/bf_utilities
Added ARRAYEND and DEBUG_SET utilities
2016-10-13 17:37:56 +01:00
Martin Budden
72535434e6 Merge pull request #1314 from martinbudden/bf_crc8
Added CRC_DVB_S2 calculation
2016-10-13 17:36:46 +01:00
Martin Budden
4608a5d061 Moved softserial out of .mk files into common 2016-10-13 17:31:58 +01:00
Martin Budden
90b7f60bac Merge pull request #1317 from Wind0r/add_beeper_guard
add guard around taskUpdateBeeper to remove unused error
2016-10-13 17:30:55 +01:00
Steffen Windoffer
f1fb7c4e69 add guard around taskUpdateBeeper to remove unused error 2016-10-13 18:09:02 +02:00
Martin Budden
3a0968cd3d Added CRC_DVB_S2 calculation 2016-10-13 16:08:52 +01:00