|
Re: Trig. Functions in EasyC
Quote:
|
Originally Posted by miketwalker
I haven't been able to find an answer to this on any of the Vex forums so I figured I'd throw it here. The students on our Vex team are working on a concept with their autonomous and need to be able to use trig functions (primarily tangent) but they can do everything else they are working with in EasyC if they can get the value of a calculation using these trig. functions. Unlike MPLAB it seems that you can't just plug in a math header file and use it like in FRC, but perhaps I am wrong. Has anyone does this and/or any suggestions on how to go about doing it? Thanks!
|
The Microchip libaries include math functions. Be sure to add an include for math.h so that the correct types are passed to the functions.
Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
|