mirror of https://github.com/ArduPilot/ardupilot
HAL_Empty: fixed throttle in Empty RCInput
This commit is contained in:
parent
d492b72a2c
commit
85007cb766
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue