Skip to content

flCalculator.cpp

Liam Lawrence edited this page Mar 16, 2017 · 1 revision

flCalculator.cpp is the script that helps a programmer find the focal length of their camera.

All of the variables are almost identical to Main.cpp, however when you run the command you should know the distance from the camera to the center between the two rings of the retro reflective tape.

To run the command, use the following syntax

./bin/flCalculator 401

Replace 401 with the distance away the camera is in inches. It will then print out the focal length for your camera. Try to have the center of the goal be lined up on the center of the entire frame (the white dot) for the best results.

NOTE: Each camera has a different focal length and the code is not perfect, for the best results, preform multiple tests and average your focal lengths together.

Clone this wiki locally