[Taranis] NCH < 8 for PXX
Shift in strings Cosmetics
This commit is contained in:
@@ -200,7 +200,7 @@ void setupPulsesPXX(unsigned int port)
|
||||
}
|
||||
else {
|
||||
if (i < sendUpperChannels) {
|
||||
chan = limit(2048, PPM_CH_CENTER(8+g_model.moduleData[port].channelsStart+i) - PPM_CENTER + (g_model.moduleData[port].failsafeChannels[8+g_model.moduleData[port].channelsStart+i] * 512 / 682) + 3072, 4095);
|
||||
chan = limit(2048, PPM_CH_CENTER(8+g_model.moduleData[port].channelsStart+i) - PPM_CENTER + (g_model.moduleData[port].failsafeChannels[8+g_model.moduleData[port].channelsStart+i] * 512 / 682) + 3072, 4095);
|
||||
if (chan == 3072) chan = 3073;
|
||||
}
|
||||
else {
|
||||
@@ -213,7 +213,10 @@ void setupPulsesPXX(unsigned int port)
|
||||
if (i < sendUpperChannels)
|
||||
chan = limit(2048, PPM_CH_CENTER(8+g_model.moduleData[port].channelsStart+i) - PPM_CENTER + (channelOutputs[8+g_model.moduleData[port].channelsStart+i] * 512 / 682) + 3072, 4095);
|
||||
else
|
||||
chan = limit(0, PPM_CH_CENTER(g_model.moduleData[port].channelsStart+i) - PPM_CENTER + (channelOutputs[g_model.moduleData[port].channelsStart+i] * 512 / 682) + 1024, 2047);
|
||||
if(i >= NUM_CHANNELS(port))
|
||||
chan = 1024;
|
||||
else
|
||||
chan = limit(0, PPM_CH_CENTER(g_model.moduleData[port].channelsStart+i) - PPM_CENTER + (channelOutputs[g_model.moduleData[port].channelsStart+i] * 512 / 682) + 1024, 2047);
|
||||
}
|
||||
|
||||
if (i & 1) {
|
||||
|
||||
Reference in New Issue
Block a user