mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +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:
parent
d777bac39d
commit
f68fc17627
16 changed files with 137 additions and 74 deletions
|
@ -78,14 +78,13 @@ static void gpsSetState(uint8_t state)
|
|||
gpsData.state_ts = millis();
|
||||
}
|
||||
|
||||
// When using PWM input GPS usage reduces number of available channels by 2 - see pwm_common.c/pwmInit()
|
||||
void gpsInit(uint8_t baudrateIndex)
|
||||
{
|
||||
portMode_t mode = MODE_RXTX;
|
||||
|
||||
// init gpsData structure. if we're not actually enabled, don't bother doing anything else
|
||||
gpsSetState(GPS_UNKNOWN);
|
||||
if (!feature(FEATURE_GPS))
|
||||
return;
|
||||
|
||||
gpsData.baudrateIndex = baudrateIndex;
|
||||
gpsData.lastMessage = millis();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue