From 94c6929f2bb7f3c51c563a851035777b1a1b0ba4 Mon Sep 17 00:00:00 2001 From: Brian Silverman Date: Sat, 15 Apr 2017 13:16:40 -0700 Subject: [PATCH] Change the UDP port number to the one FMS uses This lets it control driver stations without prompting to allow taking control. --- driver_station_connection.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/driver_station_connection.go b/driver_station_connection.go index 5bded2f..8682dfe 100644 --- a/driver_station_connection.go +++ b/driver_station_connection.go @@ -12,9 +12,11 @@ import ( "time" ) +// FMS uses 1121 for sending UDP packets, and FMS Lite uses 1120. Using 1121 +// seems to work just fine and doesn't prompt to let FMS take control. const ( driverStationTcpListenPort = 1750 - driverStationUdpSendPort = 1120 + driverStationUdpSendPort = 1121 driverStationUdpReceivePort = 1160 driverStationTcpLinkTimeoutSec = 5 driverStationUdpLinkTimeoutSec = 1