To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1857
1856  |  1858
Subject: 
Re: C standard functions with legOS?
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Thu, 26 Apr 2001 21:07:57 GMT
Viewed: 
1340 times
  
"Ross Crawford" <rcrawford@csi.com> writes:

In lugnet.robotics.rcx.legos, Michael Wisse writes:
Is it possible to use functions from C standard libraries with legOS,
e.g. sin() from math.h or abs() from stdlib.h?

One way to get sin, cos etc would be to use lookup tables, though this also
uses memory.

An alternative is using fixed point math.  There was some posts time ago,
with C source for trigonometric functions.  If you are interested, I should
have links to them, somewhere (or do a `search' :-).

bye
Bernardo
New e-mail: dibbe@freestation.it



Message has 1 Reply:
  Re: C standard functions with legOS?
 
(...) I've been meaning to butt in on this discussion sometime, but I got caught up in things, but better late than never. The source you refer to is probably mine. I wrote a suite of fixed-point math routines for multiplication, division, and (...) (23 years ago, 27-Apr-01, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: C standard functions with legOS?
 
(...) The cross-compiler is set up to not use standard libraries. This is to give more control over the code produced. Also, many standard functions just wouldn't work on the H8. There is a float library (lib/float), which allows use of floating (...) (23 years ago, 25-Apr-01, to lugnet.robotics.rcx.legos)

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