apm_planner
apm_planner copied to clipboard
Please auto-select communication port - add logic to baud rate selection.
When switching between USB cable and USB telemetry, one needs to open the dialog, select device, select baudrate. When a new device is connected - and no connection is established - switch to it. Then if ttyACM* is connected, or manually selected from droplist, suggest 115200 , if ttyUSB* - select 57600.
This is difficult. The default behavior is that AP2 keeps track of the last device you connected to, and stays locked on that. We did make the baud rates follow, so if you flip between your radio COM port and the USB com port, the baud rate will change automatically for you, but this seems to be broken so I will be fixing it.
What if you're not connected yet, you set your COM port, get ready to connect, but then you plug in your USB GPS device? All of a sudden it switches over to that and you have to go change AP2's settings again.
Or, you go to upload firmware (by plugging in USB), then once you're finished you have to change the COM port up top if you don't disconnect the USB port to connect over telemetry? There's a bunch of edge cases that we need to figure out the best way to handle before implementing this kind of logic.