To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 26675
26674  |  26676
Subject: 
Re: and the sine & cosine functions for the NXT
Newsgroups: 
lugnet.robotics
Date: 
Fri, 22 Dec 2006 23:13:41 GMT
Viewed: 
2687 times
  
In lugnet.robotics, Claude Baumann wrote:

who is going to draw the first sine and cosine waves on the NXT display?

Well, I've already done that, as well as a nifty display meter, and some other
stuff that depends on trig functions... but I did it all in NXT-G, without the
toolbox:

http://www.brickshelf.com/cgi-bin/gallery.cgi?i=1898079

I'm looking forward to trying your custom stuff, however, as my NXT-G trig
functions (particularly atan()) were getting ugly... How did you implement the
trig functions (Taylor, lookup, or other)? I didn't use Taylor because of the
inaccuracy around 90°, but under LV, it might be easier to just push the the
approximation to better levels.

--
Brian Davis



Message has 2 Replies:
  Re: and the sine & cosine functions for the NXT
 
(...) I'm doing a project using trig, but I was going for computer control. I may be able to use this though. Steve (18 years ago, 22-Dec-06, to lugnet.robotics)
  Re: and the sine & cosine functions for the NXT
 
(...) As explained on our pages, I am using CORDIC algorithm. This assures best accuracy and converges much more rapidly than Taylor. There is one trade-off though, because there is no bit shifting operation in the toolkit, I must do division (...) (18 years ago, 23-Dec-06, to lugnet.robotics)

Message is in Reply To:
  and the sine & cosine functions for the NXT
 
now we have a complete integer trig-function package. Challenge : who is going to draw the first sine and cosine waves on the NXT display? Please report any bugs. www.convict.lu/Jeune...sIntro.htm Claude (18 years ago, 22-Dec-06, to lugnet.robotics)

5 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR