mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
Workaround for the turnigy 9x stock receiver with PPM encoder.
LP-198 The receiver holds the last value on channel 4 and 5, when no signal. Without the workaround, CC3D can not detect the loss of signal.
This commit is contained in:
parent
3faa8d621a
commit
f2867fbba1
@ -341,6 +341,11 @@ static void PIOS_PPM_tim_edge_cb(__attribute__((unused)) uint32_t tim_id,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* USE_FREERTOS */
|
#endif /* USE_FREERTOS */
|
||||||
|
} else {
|
||||||
|
for (uint32_t i = 0;
|
||||||
|
i < PIOS_PPM_IN_MAX_NUM_CHANNELS; i++) {
|
||||||
|
ppm_dev->CaptureValue[i] = PIOS_RCVR_TIMEOUT;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ppm_dev->Fresh = TRUE;
|
ppm_dev->Fresh = TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user