View Single Post
  #10   Spotlight this post!  
Unread 02-04-2016, 21:00
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: How can angle offset of a shooter be calculated from pixel offset?

If you want to aim to the center of the target than obtain the center x of the target and rotate to it using the formulas postEd.

In the photo posted, the left edge of the target is roughly at x=0 (assuming a graph is overlayed) and the right boundary is at x=x for the "far" target and x=2x for the "near" target, meaning the centers would be at x=1/2x and x=x respectively. The "near" target will request twice as much turning.

Also please stop using the word turntable
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
Reply With Quote