Connecting PiTrac to TruGolf

TruGolf Integration

  1. 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.

  2. Determine the IP address of the PC.
    If you’re not certain, watch this video.

  3. Login to the Pi1 system on the PiTrac – that is:
    cd $PITRAC_ROOT/ImageProcessing
    
  4. Edit golf_sim_config.json and search for:
    "golf_simulator_interfaces": {
    
    1. Add the following to that section:
      "E6": {
          "kE6ConnectAddress": "10.0.0.10",
          "kE6ConnectPort": "2483",
          "kE6InterMessageDelayMs": 50
      },
      
    2. Set the kE6ConnectAddress value to the IP address you determined for the PC running TruGolf.
      This tells PiTrac how to connect to TruGolf.
  5. Install the PiTrac assets into the TruGolf installation:
    1. Move the .png and .json files from the $PITRAC_ROOT/ImageAssets/TruGolf directory to a location accessible from the PC.
    2. Move those .png files to:
      <TruGolfInstallDir>/Tracking/TruSimAPI/Images
      
    3. Move TruSimAPICustomSettings.json to:
      <TruGolfInstallDir>/Tracking/TruSimAPI
      
    4. Configure TruGolf to use the PiTrac icons:
      1. Edit the TruSimAPICustomSettings.json file and ensure these are set:
        "Logo": "PiTracImagesPath",
        "PiTracImagesPath": "<TruGolfInstallDir>/Tracking/TruSimAPI/Images/PiTrac_Logo_256x50.png",
        
  6. Start E6 / TruGolf:
    1. Click on the gears settings icon:
      image
    2. Select Simulator / Tracking System and then Configure for the TruSimAPI:
      image
    3. Ensure that the IP address is the IP for the PC and that the port is 2483.
  7. Test Playing:
    1. Start TruGolf.
    2. Select Practice and log in.
    3. Click Next a few times to start the Tee-Off process.
    4. 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.

    5. 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:
      image
    6. TruGolf should show the shot in its display. If that works, the simulator interface is working.
    7. 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.