|
Re: 2-Segment Arm Control
Here is a good CORDIC math library I've found. Team 296 made it, so thank them. The only thing I added was a power function. Its a simple algorithm, but it made my code cleaner. Read the comments, for they explain the return type. Everything is integer math (Longs, I believe), so the numbers represent obscure fractions of a degree. Read the comments and you'll do fine.
-Tony K
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;
Horray for most things! -George Carlin
"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year
|