mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-20 23:05:17 +03:00
Improvement: Add support for upto 18 channels. Allow RSSI to be read
from any channel, not just AUX1-4. See documentation changes in this commit.
This commit is contained in:
parent
126f94b2c1
commit
21207ca940
17 changed files with 109 additions and 36 deletions
|
@ -330,6 +330,7 @@ static void evaluateCommand(void)
|
|||
|
||||
switch (cmdMSP) {
|
||||
case MSP_SET_RAW_RC:
|
||||
// FIXME need support for more than 8 channels
|
||||
for (i = 0; i < 8; i++)
|
||||
rcData[i] = read16();
|
||||
headSerialReply(0);
|
||||
|
@ -505,8 +506,8 @@ static void evaluateCommand(void)
|
|||
s_struct((uint8_t *)motor, 16);
|
||||
break;
|
||||
case MSP_RC:
|
||||
headSerialReply(16);
|
||||
for (i = 0; i < 8; i++)
|
||||
headSerialReply(2 * rxRuntimeConfig.channelCount);
|
||||
for (i = 0; i < rxRuntimeConfig.channelCount; i++)
|
||||
serialize16(rcData[i]);
|
||||
break;
|
||||
case MSP_RAW_GPS:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue