1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

LP-215 Set correct failsafe values if PPM stream fails.

This commit is contained in:
Laurent Lalanne 2016-01-17 12:10:59 +01:00
parent 0fe61b1677
commit a0d7af7f55

View File

@ -1968,7 +1968,8 @@ static enum pios_radio_event radio_receivePacket(struct pios_rfm22b_dev *radio_d
if (val != RFM22B_PPM_INVALID) {
radio_dev->ppm[i] = (uint16_t)(RFM22B_PPM_MIN_US + (val - RFM22B_PPM_MIN) * RFM22B_PPM_SCALE);
} else {
radio_dev->ppm[i] = PIOS_RCVR_INVALID;
// Set failsafe value
radio_dev->ppm[i] = PIOS_RCVR_TIMEOUT;
}
}