Is there a way to provide a command-line option that would cause Misson Planner to automatically connect to a COM port or tcp port?
My preference would be to use a .BAT file or a script to set tcp + connect + ip + port number
Alternately, where is the ip address and port number stored?
yes
start with
MissionPlanner.exe --port COM1 --baud 57600
1 Like
I’ll try different options, but will something like -
missionplanner.exe --tcp --baud 921600 --ip 192.168.196.91 --2000
(2000 is the tcp port number)
also work?
I’m using a 4G connection and ZeroTier-one which gives my copters fixed ip addresses. I would like a one-click startup (via a .bat file) for each one to reduce confusion. And finally, can I start with a joystick on the same line? (/joy).
ok, so if using that style, might want to setup an autoconnect.
check
“C:\Users\YOURUSERNAME\Documents\Mission Planner\config.xml”
and
{
“Label”: “Mavlink SITL port”,
“Enabled”: false,
“Port”: 5760,
“Protocol”: 0,
“Format”: 0,
“Direction”: 1,
“ConfigString”: “127.0.0.1”
},
this example is used to connect to sitl
1 Like
joystick
yes
FlightData.BUT_run_script_Click(null, null);
}
catch (Exception ex)
{
CustomMessageBox.Show("Start script failed: " + ex.ToString(), Strings.ERROR);
}
});
}
if (cmds.ContainsKey("joy") && cmds.ContainsKey("type"))
{
if (cmds["type"].ToLower() == "plane")
{
MainV2.comPort.MAV.cs.firmware = Firmwares.ArduPlane;
}
else if (cmds["type"].ToLower() == "copter")
{
MainV2.comPort.MAV.cs.firmware = Firmwares.ArduCopter2;
}
else if (cmds["type"].ToLower() == "rover")
/joy “joystick name” /type “plane”
lexaryb
(Oleksii)
January 17, 2023, 4:55pm
6
Hi. Can you explain in more detail how to make the joystick start automatically at startup?