|
Re: How do I get distance between Camera and the target?
Instead of doing the math, it might be simpler just to implement a lookup table. Put the robot 50 feet from the goal and measure the camera tilt angle. Move it a foot closer at a time and repeat. Put the answers in the program.
If you have an adjustable shooter, you can put the required barrel tilt/wheel speed/catapult stop bar location in the table instead of the distance.
|