View Single Post
  #5   Spotlight this post!  
Unread 06-02-2006, 15:45
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: speed of math.h trig functions?

I don't have specific timing numbers, but considering that each time I go through the user_routine event loop our team's code currently calls

sin() four times
cos() four times
atan2() twice
asin() twice
acos() twice
sqrt() four times

and it runs without problems and without taking up sufficient code space, so I decided it wasn't worth messing with CORDIC functions and called the floating point routines "fast enough".

If I have a chance I'll set up a test loop to compare the methods, but it hasn't been a priority.