AP_HAL_SITL: initialize rc inputs appropriately for ArduSub

This commit is contained in:
Jacob Walser 2017-11-22 15:43:46 -05:00
parent 28ff272017
commit 46ac0e45aa

View File

@ -374,6 +374,9 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
pwm_input[2] = 1500; pwm_input[2] = 1500;
} else if (strcmp(SKETCH, "ArduSub") == 0) { } else if (strcmp(SKETCH, "ArduSub") == 0) {
_vehicle = ArduSub; _vehicle = ArduSub;
for(uint8_t i = 0; i < 8; i++) {
pwm_input[i] = 1500;
}
} else { } else {
_vehicle = ArduPlane; _vehicle = ArduPlane;
if (_framerate == 0) { if (_framerate == 0) {