1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Cleaned up RX initialisation. Updated Spektrum RX code to support 12

channels when using Spektrum 2048 - untested.  Renamed and extracted
core_t.numRCChannels to rxConfig.channelCount so that future commits can
clean up core_t further since core_t contains completely unrelated
properties.
This commit is contained in:
Dominic Clifton 2014-04-18 17:25:53 +01:00
parent d777bac39d
commit f68fc17627
16 changed files with 137 additions and 74 deletions

View file

@ -395,7 +395,7 @@ void loop(void)
if (((int32_t)(currentTime - rcTime) >= 0) || rcReady) { // 50Hz or data driven
rcReady = false;
rcTime = currentTime + 20000;
computeRC(&mcfg.rxConfig);
computeRC(&mcfg.rxConfig, &rxRuntimeConfig);
// in 3D mode, we need to be able to disarm by switch at any time
if (feature(FEATURE_3D)) {