Close

Compile, run, and debug PiTrac on Visual Studio

A project log for PiTrac - The DIY Golf Launch Monitor

Launch monitor using low-cost Raspberry pi and camera hardware to determine ball launch speed, angles and spin

james-pilgrimJames Pilgrim 01/01/2025 at 23:160 Comments

Now you can compile, run, debug and generally experiment with the majority of the PiTrac source code on a Windows or Mac using Visual Studio.  The Pi-specific (mostly camera-oriented) code automatically #define's itself out of the compile process when working on a non-unix operating system such as Windows.

This allows folks who would like to work on the code (or just walk through parts of it) to do so without making the investment in building a physical Pi-based PiTrac system.  Static images are used to simulate the images that the Pi cameras would otherwise take on the real Pi system  We've found this Visual Studio capability to be invaluable when debugging complicated image-processing problems.  Of course VS will run on the Pi operating system as well, but we  haven't found that development environment to be as productive.

The instructions are here.

Discussions