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 / *1859 (-20)
  Re: C standard functions with legOS?
 
(...) As other people have pointed out, its not possible to use them straight off. I've written some floating point code for my own use to do conversions between rectangular (x,y) and polar (dist, bearing) calculations. The codes not documented I'm (...) (23 years ago, 27-Apr-01, to lugnet.robotics.rcx.legos)
 
  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)
 
  Re: C standard functions with legOS?
 
(...) 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: (...) (23 years ago, 26-Apr-01, to lugnet.robotics.rcx.legos)
 
  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)
 
  C standard functions with legOS?
 
Is it possible to use functions from C standard libraries with legOS, e.g. sin() from math.h or abs() from stdlib.h? They are a part of gcc, but e.g. math.h seems to produce compiler errors. Best regards. Michael Wisse (23 years ago, 25-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: lcd
 
Yes, if you have three values, just display them like this : cputw((VALUE_1 << 8) + (VALUE_2 << 4) + (VALUE_3)); (...) (23 years ago, 25-Apr-01, to lugnet.robotics.rcx.legos)
 
  lcd
 
Is it possible to display 2 lcd intergers on the screen at the same time? ie 2 rotation sensors. Thanks in advance chris (23 years ago, 25-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: Sensor Commands and legOS 0.2.3
 
(...) TOUCH_1 is a macro defined in dsensor.h starting form version 0.2.4. If you don't want to upgrade, here is the code: #define TOUCH(a) ((unsigned int)(a) < 0x8000) #define TOUCH_1 TOUCH(SENSOR_1) #define TOUCH_2 TOUCH(SENSOR_2) #define TOUCH_3 (...) (23 years ago, 24-Apr-01, to lugnet.robotics.rcx.legos)
 
  Sensor Commands and legOS 0.2.3
 
I just installed legOS 0.2.3 under Redhat 6.2, using the RPM's that were linked to in the HOWTO. Everything I have tried so far has worked great, except for getting my touch sensors to work. The documentation I have read said that in 0.2.x one could (...) (23 years ago, 24-Apr-01, to lugnet.robotics.rcx.legos)
 
  RE: LegOS scheduler questions
 
(...) I don't /think/ so, but I don't have time to check to be certain and it has been now literally 10 months since I looked at kernel source. :\ (...) See #1. :\ (...) By design? As many as you can throw at it- there is no hard-coded limit, and (...) (23 years ago, 24-Apr-01, to lugnet.robotics.rcx.legos)
 
  RE: LegOS scheduler questions
 
Folks, This is my first day with Leogs. I just installed Legos, compiled a program and have run it successfully. Haven't got a chance to take a look at the kernel source. I have the following questions and any response will be greatly appreciated. (...) (23 years ago, 24-Apr-01, to lugnet.robotics.rcx.legos)
 
  WinLNP issues
 
For those who prefer the Java programming language, I've written some classes that may help with LNP. What you need is : the JDK 1.2, the Java Communication APIs (classes for Java communication through the serial port, and my classes located at : (...) (23 years ago, 23-Apr-01, to lugnet.robotics.rcx.legos)
 
  More LNP Issues
 
Thanks to Rainer for helping me with the stupid compiler bug :) Now that the PC side of LNP is working, I'm having troubles with the RCX side... I've modified the LNP sample provided on the WinLNP page as follows (with the includes trimmed): #define (...) (23 years ago, 22-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: raw touch sensor values
 
(...) SENSOR_1 gives you the raw value from sensor 1. TOUCH_1 gives you the boolean value if it's a touch sensor. In fact SENSOR_1 gives you the raw value no matter what type sensor it is. HTH ROSCO (23 years ago, 21-Apr-01, to lugnet.robotics.rcx.legos)
 
  raw touch sensor values
 
Hello, Can you access the raw touch sensor values in legOS? I know you can do it in NQC but I haven't figured it out in legOS. Thanks in advance, Nate Ridderman (23 years ago, 21-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: error from makelx: address out of bounds
 
I've found it. They must be declared as static: static LightSensor s(LightSensor::S3,false); int main(){ ... } Regards. Michael Wisse (...) (23 years ago, 20-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: WinLNP Issues
 
Hi Matt, i had the same problem. That's a Microsoft *feature* ;-) that comes with visual C++ 6.0. (This problem is described in the MSDN. If you've got it installed, you 'll find details there.) You have to get a service pack for this compiler. Get (...) (23 years ago, 20-Apr-01, to lugnet.robotics.rcx.legos)
 
  WinLNP Issues
 
I'm trying to compile WinLNP, and I've run across a baffling problem: h:\program files\microsoft visual studio\vc98\include\...til.h(101) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) Please choose the Technical (...) (23 years ago, 20-Apr-01, to lugnet.robotics.rcx.legos)
 
  Re: code
 
(...) [snip] (...) Can't see anything glaringly obvious, except you've used different priorities for your tasks. As they're infinite loops with no waiting, it's probably better to make their priorities equal. But the best way is probably to do all (...) (23 years ago, 19-Apr-01, to lugnet.robotics.rcx.legos)
 
  code
 
Hi,I'm trying to run 2 infinate loops at the same time. Is this possible? this is an example of what I'm trying to do. thanks #include <unistd.h> #include <dmotor.h> #include <dsensor.h> #include <conio.h> #include <time.h> pid_t fun_a; pid_t fun_c; (...) (23 years ago, 19-Apr-01, to lugnet.robotics.rcx.legos)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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