HAL_Empty: fixed throttle in Empty RCInput

This commit is contained in:
Andrew Tridgell 2013-01-03 21:14:00 +11:00
parent d492b72a2c
commit 85007cb766
1 changed files with 2 additions and 2 deletions

View File

@ -13,13 +13,13 @@ uint8_t EmptyRCInput::valid() {
}
uint16_t EmptyRCInput::read(uint8_t ch) {
if (ch == 3) return 900; /* throttle should be low, for safety */
if (ch == 2) return 900; /* throttle should be low, for safety */
else return 1500;
}
uint8_t EmptyRCInput::read(uint16_t* periods, uint8_t len) {
for (uint8_t i = 0; i < len; i++){
if (i == 3) periods[i] = 900;
if (i == 2) periods[i] = 900;
else periods[i] = 1500;
}
return len;