MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / _usage

Function _usage

libraries/AP_HAL_Linux/HAL_Linux_Class.cpp:300–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298{}
299
300void _usage(void)
301{
302 printf("Usage: --serial0 serial0Path --serial1 serial1Path \n");
303 printf("Examples:\n");
304 printf("\tserial (0 through 9 available):\n");
305 printf("\t --serial0 /dev/ttyO4\n");
306 printf("\t --serial3 /dev/ttyS1\n");
307 printf("\tlegacy UART options are deprecated, their mappings are:\n");
308 printf("\t -A/--uartA is SERIAL0\n");
309 printf("\t -C/--uartC is SERIAL1\n"); // ordering captures the historical use of uartB as SERIAL3
310 printf("\t -D/--uartD is SERIAL2\n");
311 printf("\t -B/--uartB is SERIAL3\n");
312 printf("\t -E/--uartE is SERIAL4\n");
313 printf("\t -F/--uartF is SERIAL5\n");
314 printf("\t -G/--uartG is SERIAL6\n");
315 printf("\t -H/--uartH is SERIAL7\n");
316 printf("\t -I/--uartI is SERIAL8\n");
317 printf("\t -J/--uartJ is SERIAL9\n");
318 printf("\tnetworking tcp:\n");
319 printf("\t --serial1 tcp:192.168.2.15:1243:wait\n");
320 printf("\t --serial0 tcp:11.0.0.2:5678\n");
321 printf("\t --serial0 udp:11.0.0.2:14550\n");
322 printf("\t --serial0 udp:11.0.0.2:14550\n");
323 printf("\tnetworking UDP:\n");
324 printf("\t --serial0 udp:11.0.0.255:14550:bcast\n");
325 printf("\t --serial0 udpin:0.0.0.0:14550\n");
326 printf("\tcustom log path:\n");
327 printf("\t --log-directory /var/APM/logs\n");
328 printf("\t -l /var/APM/logs\n");
329 printf("\tcustom terrain path:\n");
330 printf("\t --terrain-directory /var/APM/terrain\n");
331 printf("\t -t /var/APM/terrain\n");
332 printf("\tcustom storage path:\n");
333 printf("\t --storage-directory /var/APM/storage\n");
334 printf("\t -s /var/APM/storage\n");
335#if AP_MODULE_SUPPORTED
336 printf("\tmodule support:\n");
337 printf("\t --module-directory %s\n", AP_MODULE_DEFAULT_DIRECTORY);
338 printf("\t -M %s\n", AP_MODULE_DEFAULT_DIRECTORY);
339#endif
340 printf("\tcpu affinity:\n");
341 printf("\t --cpu-affinity 1 (single cpu) or 1,3 (multiple cpus) or 1-3 (range of cpus)\n");
342 printf("\t -c 1 (single cpu) or 1,3 (multiple cpus) or 1-3 (range of cpus)\n");
343}
344
345void HAL_Linux::run(int argc, char* const argv[], Callbacks* callbacks) const
346{

Callers 2

runMethod · 0.85
_parse_command_lineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected