Browse Source

AP_HAL_SITL: initialize rc inputs appropriately for ArduSub

master
Jacob Walser 7 years ago
parent
commit
46ac0e45aa
  1. 3
      libraries/AP_HAL_SITL/SITL_cmdline.cpp

3
libraries/AP_HAL_SITL/SITL_cmdline.cpp

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

Loading…
Cancel
Save