mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_HAL_SITL: update parameter with using command line speedup option
This commit is contained in:
parent
36d8ef1971
commit
7d9c947b9b
@ -232,6 +232,9 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
|
|||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
speedup = strtof(gopt.optarg, nullptr);
|
speedup = strtof(gopt.optarg, nullptr);
|
||||||
|
char speedup_string[18];
|
||||||
|
snprintf(speedup_string, sizeof(speedup_string), "SIM_SPEEDUP=%s", gopt.optarg);
|
||||||
|
_set_param_default(speedup_string);
|
||||||
break;
|
break;
|
||||||
case 'r':
|
case 'r':
|
||||||
_framerate = (unsigned)atoi(gopt.optarg);
|
_framerate = (unsigned)atoi(gopt.optarg);
|
||||||
|
Loading…
Reference in New Issue
Block a user