want to get the bearing calculated down to at least a couple
degrees, since it'll potentially be used for automatic
>aiming (e.g., tracking an ATV-equipped plane.)
nasty hack would be to use a lookup table which would convert the tangent value
to degrees. That's basically what I did to get the 16 compass bearings. I just
ran through a few if-then statements to check if the value was within the limits
of each section. Because the values follow a pattern I was able to fold the 360
degree circle into 90 degree sections. You could do the same, and only have to
check through 90 values and subtract the appropriate amount from a preset value
depending on the quadrant you are working in. It's not elegant, but it can get
the job done when you have limited tools and resources.
I am using the free version of SPAMfighter for private users.
It has removed
152 spam emails to date.
Paying users do not have this message in their
for free now!