DSM2 pulses throws adjusted

This commit is contained in:
bsongis
2012-04-10 19:12:49 +00:00
parent 7647fea036
commit 7b969e2f62
2 changed files with 1 additions and 5 deletions
+1
View File
@@ -519,6 +519,7 @@ void setupPulsesDsm2()
for (uint8_t i=0; i<DSM2_CHANS; i++)
{
uint16_t pulse = limit(0, (g_chans512[i]>>1)+512, 1023);
pulse = (pulse * 13) / 32;
dsmDat[2+2*i] = (i<<2) | ((pulse>>8)&0x03);
dsmDat[3+2*i] = pulse & 0xff;
}