DSM2 pulses throws adjusted when DSM2_SERIAL as DSM2_PPM

This commit is contained in:
bsongis
2012-04-10 20:55:11 +00:00
parent 039b76179a
commit 2c14066675
+1 -1
View File
@@ -421,7 +421,7 @@ FORCEINLINE void setupPulsesDsm2()
}
*ptr++ = g_model.modelId;
for (uint8_t i=0; i<DSM2_CHANS; i++) {
uint16_t pulse = limit(0, (g_chans512[i]>>1)+512, 1023);
uint16_t pulse = limit(0, ((g_chans512[i]*13)>>5)+512,1023);
*ptr++ = (i<<2) | ((pulse>>8)&0x03);
*ptr++ = pulse & 0xff;
}