View Single Post
  #20   Spotlight this post!  
Unread 27-01-2016, 21:09
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: More Vision questions

The vision example does some mapping on target location to make the target coordinates range from -1 to 1 in X and Y. The reason for this is that it makes the code independent of camera resolution and makes it very similar to a joystick output. You may need to multiply by a scaling number, but this is pretty close to being able to wire the camera result to the Robot Drive.

If you want to close the loop faster than your image processing allows, consider using a gyro or IMU to turn by X degrees.

Greg McKaskle