View Single Post
  #4   Spotlight this post!  
Unread 13-02-2012, 07:12
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Robot Position Tracking, Gyro, Alignment help needed

After you acquired an image from the camera and processed the image to find some targets, the target will give you center_mass_x and center_mass_y. By comparing center_mass_x to the screen_center_x (160 if your resolution is 320x240), then you can calculate the angle you need to turn the robot to bring center_mass_x to be aligned with screen_center_x. Once you did that, your target is dead ahead.
__________________
Reply With Quote