| | trouble compiling brickOS
|
|
Hi! I am pretty new to lego and I started for a few days to make my rcx work under Linux. After I passed all the makefile issues, gcc 3.3 mlsl problems, I still get this error from memcpy.c: make[1]: Entering directory (...) (21 years ago, 3-Sep-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Maths functions
|
|
Make my day. "nanobapt" <nanobapt@wanadoo.fr> wrote in message news:3F50F04C.204090...adoo.fr... (...) have (...) (21 years ago, 31-Aug-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Maths functions
|
|
(...) That's nor really difficult ... nanobapt (21 years ago, 30-Aug-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Maths functions
|
|
Natural log (ln), and square root. Also useful would be x^y where x and y have fractional parts. I see you have done it with just x as a float and y as an int. This would incorporate the square root by doing x^1/2 "nanobapt" <nanobapt@wanadoo.fr> (...) (21 years ago, 30-Aug-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Maths functions
|
|
(...) What do you need more than I wrote ? nanobapt (21 years ago, 30-Aug-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Maths functions
|
|
I've posted an enhancement request on the sourceforge website for someone to write a full math.h. I would do it myself but my programming skills aren't very good. Your math.h looks like a good start. Hopefully someone will build on that. Thanks for (...) (21 years ago, 30-Aug-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Maths functions
|
|
(...) (URL) (21 years ago, 29-Aug-03, to lugnet.robotics.rcx.legos)
|
|
| | Maths functions
|
|
I'm having trouble finding a maths header file. It's usually called "math.h". I need to do stuff like sine and cosine, and use the "abs" function to make a number positive. Does a file like this exist? Are there any plans to incorporate a maths (...) (21 years ago, 29-Aug-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: Threads within threads
|
|
(...) Have you tried to run this code? I wonder what will happen "in real life". Actually, main will start monkey and cow as fast as possible. I think this will crash your stack after a short while. Regards, Michael (21 years ago, 29-Aug-03, to lugnet.robotics.rcx.legos)
|
|
| | Threads within threads
|
|
Is it possible to use threads within threads? In the example below (with all 6 threads having different priority levels), how does the priority setting of each thread affect it being executed earlier than other threads? I mean, I assume that thread1 (...) (21 years ago, 27-Aug-03, to lugnet.robotics.rcx.legos)
|