Mavlink module argument question, what does -x do?

Here is the line of code: https://github.com/PX4/Firmware/blob/master/src/modules/mavlink/mavlink_main.cpp#L2715

static void usage()
{
PX4_INFO(“usage: mavlink {start|status|stream|stop-all|boot_complete}”);
PX4_INFO(" [-d device]");
#ifdef __PX4_POSIX
PX4_INFO(" [-u network_port]");
PX4_INFO(" [-o remote_port]");
PX4_INFO(" [-t partner_ip]");
#endif
PX4_INFO(" [-b baudrate]");
PX4_INFO(" [-r rate]");
PX4_INFO(" [-m mode]");
PX4_INFO(" [-s stream]");
PX4_INFO(" [-f]");
PX4_INFO(" [-p]");
PX4_INFO(" [-v]");
PX4_INFO(" [-w]");
PX4_INFO(" [-x]");

I notice the command to start communication over USB uses the -x argument, this is the line: mavlink start -r 800000 -d /dev/ttyACM0 -m config -x

Link: https://github.com/PX4/Firmware/blob/master/ROMFS/px4fmu_common/init.d/rcS#L841

What does this -x argument do??? Thanks.

Respectively I was wondering what all other Flags do, as there is no Docu on -f / -p / -v / -w / -x

I got a response of the -x, it enables MAVLINK FTP

Yes there is: https://dev.px4.io/en/middleware/modules_communication.html#mavlink

1 Like