Difference between revisions of "User talk:Frolicking Zombie"
(Hello) |
|||
Line 1: | Line 1: | ||
+ | <math>\text{targetError} = (\text{currentTime} - \text{lastScanTime})\times 8</math> | ||
+ | <br /> | ||
+ | <math>\text{targetDistance} = \sqrt{(\text{targetX} - \text{myX})^2+(\text{targetY}-\text{myY})^2}</math> | ||
+ | <br /> | ||
+ | <math>\angle\text{targetHeading} = \tan ^{-1}\left(\frac{\text{targetY}-\text{myY}}{\text{targetX}-\text{myX}}\right)</math> | ||
+ | <br /> | ||
<math>\text{y = }\frac{2 \text{targetDistance}^2-\text{targetError}^2}{2 \text{targetDistance}}</math> | <math>\text{y = }\frac{2 \text{targetDistance}^2-\text{targetError}^2}{2 \text{targetDistance}}</math> | ||
<br /> | <br /> | ||
− | <math>\text{x = | + | <math>\text{x = }\pm \frac{1}{2} \sqrt{4 \text{targetError}^2-\frac{\text{targetError}^4}{\text{targetDistance}^2}}</math> |
+ | <br /> | ||
+ | <math>\angle\theta\text{ = }\tan ^{-1}\left(\frac{x}{y}\right)</math> | ||
+ | <br /> | ||
+ | <math>\angle\text{cwBoundHeading} = \angle\text{targetHeading}+\angle\theta</math> | ||
<br /> | <br /> | ||
− | <math>\text{ | + | <math>\angle\text{ccwBoundHeading} = \angle\text{targetHeading}-\angle\theta</math> |
<br /> | <br /> | ||
[[File:Radarzoombasis.png]] | [[File:Radarzoombasis.png]] |
Revision as of 15:11, 16 August 2009
<math>\text{targetError} = (\text{currentTime} - \text{lastScanTime})\times 8</math>
<math>\text{targetDistance} = \sqrt{(\text{targetX} - \text{myX})^2+(\text{targetY}-\text{myY})^2}</math>
<math>\angle\text{targetHeading} = \tan ^{-1}\left(\frac{\text{targetY}-\text{myY}}{\text{targetX}-\text{myX}}\right)</math>
<math>\text{y = }\frac{2 \text{targetDistance}^2-\text{targetError}^2}{2 \text{targetDistance}}</math>
<math>\text{x = }\pm \frac{1}{2} \sqrt{4 \text{targetError}^2-\frac{\text{targetError}^4}{\text{targetDistance}^2}}</math>
<math>\angle\theta\text{ = }\tan ^{-1}\left(\frac{x}{y}\right)</math>
<math>\angle\text{cwBoundHeading} = \angle\text{targetHeading}+\angle\theta</math>
<math>\angle\text{ccwBoundHeading} = \angle\text{targetHeading}-\angle\theta</math>
Hey there! Wanna tell us what you're doing? Looks pretty interesting. =) « AaronR « Talk « 14:04, 16 August 2009 (UTC)