Change the UDP port number to the one FMS uses

This lets it control driver stations without prompting to allow taking
control.
This commit is contained in:
Brian Silverman
2017-04-15 13:16:40 -07:00
parent 24040ecded
commit 94c6929f2b

View File

@@ -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