Connecting PiTrac to TruGolf
-
First, ensure that TruGolf – E6 Connect is set up on whatever computer you are using for it.
Third-party Golf Simulators do not run on the PiTrac’s Pi processors, and are typically installed on a PC with a higher-quality graphics card.
Do not start the simulator yet. -
Determine the IP address of the PC.
If you’re not certain, watch this video. - Login to the Pi1 system on the PiTrac – that is:
cd $PITRAC_ROOT/ImageProcessing
- Edit
golf_sim_config.json
and search for:"golf_simulator_interfaces": {
- Add the following to that section:
"E6": { "kE6ConnectAddress": "10.0.0.10", "kE6ConnectPort": "2483", "kE6InterMessageDelayMs": 50 },
- Set the
kE6ConnectAddress
value to the IP address you determined for the PC running TruGolf.
This tells PiTrac how to connect to TruGolf.
- Add the following to that section:
- Install the PiTrac assets into the TruGolf installation:
- Move the
.png
and.json
files from the$PITRAC_ROOT/ImageAssets/TruGolf
directory to a location accessible from the PC. - Move those
.png
files to:<TruGolfInstallDir>/Tracking/TruSimAPI/Images
- Move
TruSimAPICustomSettings.json
to:<TruGolfInstallDir>/Tracking/TruSimAPI
- Configure TruGolf to use the PiTrac icons:
- Edit the
TruSimAPICustomSettings.json
file and ensure these are set:"Logo": "PiTracImagesPath", "PiTracImagesPath": "<TruGolfInstallDir>/Tracking/TruSimAPI/Images/PiTrac_Logo_256x50.png",
- Edit the
- Move the
- Start E6 / TruGolf:
- Click on the gears settings icon:
- Select Simulator / Tracking System and then Configure for the TruSimAPI:
- Ensure that the IP address is the IP for the PC and that the port is
2483
.
- Click on the gears settings icon:
- Test Playing:
- Start TruGolf.
- Select Practice and log in.
- Click Next a few times to start the Tee-Off process.
- On the Pi 1 system, run:
RunScripts/runTestExternalSimMessage.sh
This sends a test shot to the sim. The test program will wait for a message from TruGolf saying it is ready for the next shot. As soon as TruGolf is ready, the PiTrac test program will send a first shot.
- After the first shot, PiTrac will wait for TruGolf to re-arm.
To do that, select the club (button in lower-left), and PiTrac will send a second shot:
- TruGolf should show the shot in its display. If that works, the simulator interface is working.
- If there are any issues, turn on the logging level in:
RunScripts/runTestExternalSimMessage.sh
to:
--logging_level=trace
and see where that leads.
(*) “TruGolf Simulators” and other marks such as E6 may be trademarked by TruGolf, Inc.
The PiTrac project is not endorsed, sponsored by, or associated with TruGolf products or services.