Add and update missing SITL command line usage information

This commit is contained in:
Dr.-Ing. Amilcar Do Carmo Lucas 2017-02-16 01:00:55 +01:00 committed by Andrew Tridgell
parent 06c073e448
commit b4260c77be
1 changed files with 14 additions and 11 deletions

View File

@ -43,17 +43,19 @@ static void _sig_fpe(int signum)
void SITL_State::_usage(void) void SITL_State::_usage(void)
{ {
printf("Options:\n" printf("Options:\n"
"\t--wipe wipe eeprom and dataflash\n" "\t--help|-h display this help information\n"
"\t--unhide-groups parameter enumeration ignores AP_PARAM_FLAG_ENABLE\n" "\t--wipe|-w wipe eeprom and dataflash\n"
"\t--speedup SPEEDUP set simulation speedup\n" "\t--unhide-groups|-u parameter enumeration ignores AP_PARAM_FLAG_ENABLE\n"
"\t--rate RATE set SITL framerate\n" "\t--speedup|-s SPEEDUP set simulation speedup\n"
"\t--console use console instead of TCP ports\n" "\t--rate|-r RATE set SITL framerate\n"
"\t--instance N set instance of SITL (adds 10*instance to all port numbers)\n" "\t--console|-C use console instead of TCP ports\n"
// "\t--param NAME=VALUE set some param\n" CURRENTLY BROKEN! "\t--instance|-I N set instance of SITL (adds 10*instance to all port numbers)\n"
"\t--synthetic-clock set synthetic clock mode\n" // "\t--param|-P NAME=VALUE set some param\n" CURRENTLY BROKEN!
"\t--home HOME set home location (lat,lng,alt,yaw)\n" "\t--synthetic-clock|-S set synthetic clock mode\n"
"\t--model MODEL set simulation model\n" "\t--home|-O HOME set home location (lat,lng,alt,yaw)\n"
// "\t--client MODEL set client address string\n" NOT USED "\t--model|-M MODEL set simulation model\n"
"\t--fdm|-F ADDRESS set FDM address, defaults to 127.0.0.1\n"
// "\t--client ADDRESS TCP address to connect uartC to\n" NOT USED
"\t--gimbal enable simulated MAVLink gimbal\n" "\t--gimbal enable simulated MAVLink gimbal\n"
"\t--disable-fgview disable Flight Gear view\n" "\t--disable-fgview disable Flight Gear view\n"
"\t--autotest-dir DIR set directory for additional files\n" "\t--autotest-dir DIR set directory for additional files\n"
@ -188,6 +190,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
{"synthetic-clock", false, 0, 'S'}, {"synthetic-clock", false, 0, 'S'},
{"home", true, 0, 'O'}, {"home", true, 0, 'O'},
{"model", true, 0, 'M'}, {"model", true, 0, 'M'},
{"fdm", false, 0, 'F'},
{"client", true, 0, CMDLINE_CLIENT}, {"client", true, 0, CMDLINE_CLIENT},
{"gimbal", false, 0, CMDLINE_GIMBAL}, {"gimbal", false, 0, CMDLINE_GIMBAL},
{"disable-fgview", false, 0, CMDLINE_FGVIEW}, {"disable-fgview", false, 0, CMDLINE_FGVIEW},