Go to Post Defense shall reign supreme. - Corey Balint [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #13   Spotlight this post!  
Unread 08-08-2005, 22:04
Hutch Hutch is offline
NOTAG
FRC #0461 (Westside Boiler Invasion)
Team Role: Programmer
 
Join Date: Jul 2005
Location: Indiana
Posts: 69
Hutch will become famous soon enoughHutch will become famous soon enough
Re: Strange products upon running code...

Quote:
Originally Posted by Mike Betts
Hutch,

Please read this...

Mike
I would never say to use the built in sine function... I don't even use it on desktop computers (I do a lot of work with real time 3D graphics). A simple approximation will handle sine quite readily. With robots, you can even get away with a 7th order taylor series if you don't want to write any sort of decent approximation - physical innacuracies will be greater than approximation inaccuracies then.

And I'm guessing that normal stuff like adds and multiplies are relatively cheap for floats, even on this hardware... Which, in my opinion, makes them pretty much the way to go. While you may get a little more speed with integers, I've never had a problem with the controller's speed and it not finishing the slow loop in 26.2ms while doing normal robot stuff. And using floats saves you that 2K look up table.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Out of the Box Camera Code russell Programming 9 21-10-2009 05:28
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
Problem running compiled code jskene Programming 10 23-01-2005 21:13
heres the code. y this not working omega Programming 16 31-03-2004 15:18
Strange IR sensor movement with default tracker code wun Programming 5 19-03-2004 10:51


All times are GMT -5. The time now is 00:13.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi