mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 12:14:10 -04:00
AP_HAL_SITL: initialize rc inputs appropriately for ArduSub
This commit is contained in:
parent
28ff272017
commit
46ac0e45aa
@ -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…
Reference in New Issue
Block a user