1
0
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:
Ákos Máté 2015-10-24 17:12:08 +02:00 committed by Laurent Lalanne
parent 3faa8d621a
commit f2867fbba1

View File

@ -341,6 +341,11 @@ static void PIOS_PPM_tim_edge_cb(__attribute__((unused)) uint32_t tim_id,
}
}
#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;