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 / *1344 (-100)
  Getting the Windows LegOS 0.2.3 compiler package to compile 0.2.4
 
I have been using Rossz Vámos-Wentworth's LegOS 0.2.3 distribution for Windows and it works beautifully. I was wondering if anyone has had any luck getting the new 0.2.4 release to work under this Windows distribution of LegOS? I copied the entire (...) (24 years ago, 3-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: Cygnus Installation troubles
 
tnx... finally got to borrow a clean machine and got it to work (0.2.4 really does do away with the need for perl)... yep, seems like mixing the two really did mess up my installation... chrís (...) (24 years ago, 2-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: dont't fear the reaper
 
(...) Jeeek. That did it, thank you. Got the new tm.c and now it all works. Mike (24 years ago, 1-Aug-00, to lugnet.robotics.rcx.legos)
 
  Multiple RCXs
 
In my latest and greatest idea I intend to run two RCXs together to control a fairly complicated arm. To do this I need to communicate with two RCXs from my PC (the program is actually going to be controlled from my PC). Now I haven't had much luck (...) (24 years ago, 2-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: Mindstorms firmware
 
(...) Thanks very much for everybodys help, I've got it sorted now. Rob. (24 years ago, 2-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: Mindstorms firmware
 
(...) I usually just pull out a battery for a second. Note that the RCX draws very little power when turned off, and thus can retain memory for a while even without any batteries (cacitance on the power supply rails hold the RAM for a while). A good (...) (24 years ago, 2-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: dont't fear the reaper
 
(...) You turned it off in between and by only having your mm.c patch zapped parts of legOS own memory. No program will survive an off/on with only your patch in 0.2.4. Eddie C. Dost ecd@skynet.be (24 years ago, 1-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: dont't fear the reaper
 
Michael and co.: If you want to do this type of testing, but don't want to mess with CVS, sourceforge automatically creates daily tarballs of the CVS tree, so that you can get a nearly completely up-to-date version of legOS from CVS without having (...) (24 years ago, 1-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: dont't fear the reaper
 
(...) Actually, I'm using 0.2.4, last downloadable version. With this, the memory eating problem is solved with my stated patch. Might be, that the new version has the tm.c changes? (I just press "run" to stop my program, then "run" to start it (...) (24 years ago, 1-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: Mindstorms firmware
 
(...) No idea why that wouldn't work, it always has for me. I hold down prgm and as soon as I hit on/off, there's a little beep and the thing shuts off. When I turn it back on, it's back to the regular stuff. Of course, you can always try taking out (...) (24 years ago, 1-Aug-00, to lugnet.robotics.rcx.legos)
 
  Mindstorms firmware
 
OK... Really DUMB question but I have to give my borrowed RCX back and buy my own so I went to remove legOS from my mates RCX to give it back and guess what... it won't go! :( I looked in the HOWTO and it says hold down Prgm and press the on.off (...) (24 years ago, 1-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: DJGPP firmdl
 
Try setting the environment variable RCXTTY (or RCX_TTY, I'm not sure) to your device name (e.g. RCXTTY=/dev/ttyS1; export RCXTTY). (...) (24 years ago, 1-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: solaris + legOS
 
(...) Actually you should refer to CVS files that are available from (URL) tree contains the Solaris patch too. Bye, Paolo. --- Gambling: The sure way of getting nothing for something. (24 years ago, 1-Aug-00, to lugnet.robotics.rcx.legos)
 
  DJGPP firmdl
 
I've been able to build all the tools under DJGPP, unfortunately, firmdl3.exe doesn't accept anything as a valid serial port name. I've tried "com1", "/dev/com1", /dev/ttyS0", etc, but nothing works. The message is either "not a tty" or "no such (...) (24 years ago, 1-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: questions, comments, and suggestions
 
(...) RCX_COMPILER is an internal gcc/egcs define, when patched correctly to support RCX interrupts. This is still used and useful, as it saves only the required registers, unlike the HANDLER_WRAPPER macro, which saves all volatile registers. (...) (...) (24 years ago, 1-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: dont't fear the reaper
 
(...) This change is correct, although it will not work by itself. Using only this all memory will be freed when the RCX is powered off, including program memory. To work correctly another change to tm.c is necessary, so memory allocated by kernel (...) (24 years ago, 1-Aug-00, to lugnet.robotics.rcx.legos)
 
  Re: Persistent globals
 
(...) Shure: static unsigned char matrix[100][100] __persistent = { { 0, }, }; Eddie C. Dost ecd@skynet.be (24 years ago, 31-Jul-00, to lugnet.robotics.rcx.legos)
 
  dont't fear the reaper
 
I've tried to test the maximum memory allocation possible in legOS. For that, I wrote the following test program: #include <conio.h> #include <unistd.h> #include <stdlib.h> int main( int argc, char **argv ) { int i; char *cp; i = 1; while( ( cp = (...) (24 years ago, 31-Jul-00, to lugnet.robotics.rcx.legos)
 
  questions, comments, and suggestions
 
Hello, I'm just rooting through the kernel code, and have a few questions: [note: after actually writing this, there not all questions, more comments, or suggestions. And there aren't just a few of them. Good luck getting through it! ;-) ] *) What (...) (24 years ago, 31-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Persistent globals
 
(...) Hi again! I have found that this works with scalar variables. However, I need to make an array persistent. More specifically, I have a 100x100 matrix containing a population for use with genetic programming and I need to be able to keep this (...) (24 years ago, 31-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Signalling and controlling rcx
 
(...) I don't know much about winLNP, but we use a small util based on the LNP code: (URL) called ir tool or something like that). If you want to integrate it into your own code (rather than calling a seperate executable), have a look at the version (...) (24 years ago, 31-Jul-00, to lugnet.robotics.rcx.legos)
 
  Signalling and controlling rcx
 
Hi there, This is actually a request for information. I am currently trying to control my RCX through the use of communication from my PC. The idea is that through some method I can type things into the computer and this will control the rcx via the (...) (24 years ago, 31-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Cygnus Installation troubles
 
(...) only (...) the (...) I have never attemped "mix" between the two environments. I hope that this is not the problem. You can try to repeat installation of cygnwin after a general cleanup. BTW, I suppose that you have made a "make realclean" (...) (24 years ago, 28-Jul-00, to lugnet.robotics.rcx.legos)
 
  Cygnus Installation troubles
 
Hi All, I downloaded the Cygnus installation for windows yesterday (previously I only used it to make dll.exe, and relied on djgpp for the .lx and .srec), and the demo directory doesn't seem to make properly. I get these messages: BASH.EXE-2.02$ (...) (24 years ago, 28-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: solaris + legOS
 
Hi, Can you send me the full loader.c and any other changes that was done to get it to compile under Solaris?  I am in the process of re-writing most of dll to be easier to read (getting rid of a lot of the ifdefs, renaming functions, etc), but (...) (24 years ago, 28-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) (URL) particular, scroll down to "notes on addresses" and "notes on routines". The routines for the firmware start at 0x8000. The routines for the ROM start at 0x3ae. Ultimately, both kinds of routines are important to figuring out how the (...) (24 years ago, 28-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: solaris + legOS
 
YEAH! It works! And there was great rejoicing! :-) This version sucsefully d/led the helloworld.lx, and it ran perfectly. Thank you much! I'm curious, what all did you change? I saw you did a cool thing to make the getopt_long work... (btw, it gave (...) (24 years ago, 28-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Official release of legOS 0.2.4 and legOS HOWTO 0.2.0
 
(...) [big snip] Great job guys! I've been deep into legOS 0.1.7, but though I percieved the potentialities of the system I decided it was too unstable and unreliable for effective usage. I'm very glad you are now ready with a new version, and will (...) (24 years ago, 28-Jul-00, to lugnet.robotics.rcx.legos, lugnet.robotics)
 
  Re: Official release of legOS 0.2.4 and legOS HOWTO 0.2.0
 
(...) Thanks. Keep an eye out for the freshmeat news in the morning :) Ditto sourceforge. Luis ---...--- "Summertime... and the living is easy... fish are jumping and the cotton is high... So hush, little baby, baby don't you cry." -Ella ---...--- (24 years ago, 28-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Official release of legOS 0.2.4 and legOS HOWTO 0.2.0
 
[neat stuff snipped] Let me just say, congratulations! I really look forward to trying this out. -- "Do not go gentle into that good night. Rage, rage against the dying of the light." - Dylan Thomas Mike Ash - (URL), <mailto:mail@mikeash.com> (24 years ago, 28-Jul-00, to lugnet.robotics.rcx.legos)
 
  Official release of legOS 0.2.4 and legOS HOWTO 0.2.0
 
Hi, everyone! On behalf of Paolo Masetti and myself, and the rest of the legOS crew, I'd like to announce the release of legOS version 0.2.4. This is the first release in many months, and so it has lots of great goodies. *Vastly improved stability (...) (24 years ago, 28-Jul-00, to lugnet.robotics.rcx.legos, lugnet.robotics)  
 
  Re: solaris + legOS
 
(...) I've been toying with trying to get an autoconf going with legOS - does Windows support this? ROSCO (24 years ago, 28-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: solaris + legOS
 
(...) You do have FASYNC on Solaris, it's in <sys/file.h>. But this won't help much, as it is only there for socket IO. The same problem is with F_SETOWN, it is only defined for sockets, therefore you get the EINVAL. (...) No, we won't get SIGIO (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: solaris + legOS
 
(...) It's the default setting. (...) You can put dll in verbose mode (--verbose), and see what's going on between RCX and IR Tower. (...) Very few documentation on LNP... :-( You can watch in lnp.c & lnp-logical.c, or just ask, I've worked a lot (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) Can you please tell me where to find this documentation? Mike (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: rotation sensor thing solved
 
(...) Ahhh, this is a hint why it shows up now. The additional delay in the dsensor code shifts the duty cycle of the sensor down just a little bit, so it can't operate anymore. This will all be fixed with the new code in 0.2.5. I will get myself (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: solaris + legOS
 
(...) Oh yes. I can commit patches in CVS for you. :-) (...) Enjoy!!!! :-) Bye, Paolo. --- Ignorance is temporary; Stupidity lasts forever!!! (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: utils/Makefile.common problem - djgpp
 
(...) I think that in we intented to write: # DJGPP does not define OSTYPE # ifndef OSTYPE OSTYPE=MSDOS endif Because we know that DJPP does not define OSTYPE. Are we sure that uname.exe is always present in a DJPP installation? (...) No problem. (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: rotation sensor thing solved
 
(...) This is a quite interesting situation to test. When I released patched sensors routines, I've tested the sensor values (expecially rotation one) with batteries full and with very exausted batteries, but never with exausted batteries and motors (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: rotation sensor thing solved
 
(...) Powering them more frequently but for a shorter time, you mean? Yes- I do see your point. This will be something to keep track of when/if we mess with the sensors in 0.2.x. BTW, in hindsight, this should have been obvious- the reason that the (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: rotation sensor thing solved
 
(...) Actually, the sensors themselves don't generate an interrupt. The interrupt to read the sensors is from a timer, and it just cycles through the sensors waiting to read the next one. This may be related to the problem Kekoa mentioned about (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  rotation sensor thing solved
 
OK, so I had forgotten that for whatever reason legOS rotation sensors are very, very sensitive to dying batteries. I think that when underpowered, they either don't generate an interrupt or the voltage on the interrupt is too weak and the signal (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: solaris + legOS
 
(...) I've been too busy, and will be stepping on a plane tomorrow, and ignoring legOS for two well deserved weeks. Paolo can (will?) work with you on getting those into CVS. Good luck on the rest- with any luck, I hope to see Solaris on the ports (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  solaris + legOS
 
Hello, I'm trying to get legOS to work on solaris. I'm having troubles. I've got the cross compiler installed. I'm having the same problem everyone else who's tried it on Solaris: legOS/util/dll-src/loader.c gives problems me an error with the (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  solaris + legOS
 
Hello, I'm trying to get legOS to work on solaris. I'm having troubles. I've got the cross compiler installed. I'm having the same problem everyone else who's tried it on Solaris: legOS/util/dll-src/loader.c gives problems me an error with the (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  utils/Makefile.common problem - djgpp
 
re: legos.0.2.4 In the file Makefile.common in the utils directory is this: # DJGPP does not define OSTYPE # ifndef OSTYPE OSTYPE=$(MSDOS) endif It should be: # DJGPP does not define OSTYPE # ifndef OSTYPE OSTYPE=$(shell uname) endif With the (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: rotation sensor problem (different one this time)
 
(...) Nope, just rotation. Well, I can't be sure, since there are no other sensors, but since it is not permanent (i.e., I can still force it to register, just at the wrong times) I doubt I have lost the IRQ. (...) No signals at all. I'll try it (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: rotation sensor problem (different one this time)
 
(...) All sensors stops responding? I think that you have lost, for some reasons, the ADC sampling IRQ... If you loose this one you have lost the kick to continue sampling... Some part of code inside legOS disable IRQs... I'm not enough expert in H8 (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  further observations on rotation sensor problem
 
It would appear that all movements (even when things are otherwise behaving poorly) are properly processed if the movements are done manually while the robot is doing it's computational phase. It would appear that things are dropped when the robot (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  rotation sensor problem (different one this time)
 
This occurs very irregularly, so I'm not sure what the problem could be, but it is a whopper. After a certain amount of time running my program, (or perhaps after certain inputs-I'm not sure) it would appear that ROTATION_X stops being updated. (...) (24 years ago, 27-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) I remember wondering what port 6 bit 3 did and so I think I tried setting it on and off and not noticing anything broken either way. Maybe I didn't test enough though. Somebody might want to try repeating the experiment. Some extra evidence is (...) (24 years ago, 26-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) I supposed so, but only to get a "fast scaling"? (...) I can "rescale" those values by theoretical calculation and maintain >>7 or make the right conversion (0-100). Now I've done the right scaling (ready to commit), but I sincerely think that (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  RE: light sensor problem?
 
(...) And I'll add the reminder (for all the newbies) that without Kekoa's efforts in doing the low-level documentation, we would not be where we are today.... Thanks again, Kekoa....... As a side note, I wonder how the power to the LCD controller (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) I personally forget the numbers of the lugnet posts. The gist is that the firmware and LegOS were, at the time, different in a critical way. I don't know the current status of LegOS. At the time, LegOS cycled through the 4 A/D sensors, reading (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
This is the whole directory command dump. These errors are half-corrected if I specify ../include/*.h in the include# line. Then I get errors about not being able to find other *.h's that the originals included. Makefile:41: .depend: No such file or (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
Oops. When I copied it, that statement got left out, and I put it bck in in the incoorect place. The original version of the code had the return in the outside loop. I know it is this way because I could turn the rotation sensor slowly, and see the (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Persistent globals
 
(...) Wonderful! (Oh, and good morning, Eddie ;) I'm putting some stuff into the HOWTO as we speak- I'll mention that. Luis ---...--- "Summertime... and the living is easy... fish are jumping and the cotton is high... So hush, little baby, baby (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Persistent globals
 
(...) I just committed a header file persistent.h with comment on how to use __persistent in your files. I also updated genlds.c to move the persistent data to the right place. Eddie C. Dost ecd@skynet.be (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
(...) Could you please post the compile command the makefile generates to the list, including the error? Like in: ecd@reset:~/lego/min...egOS/demo> make /usr/local/bin/h8300...hi-hms-gcc -O2 -fno-builtin -fomit-frame-pointer -Wall (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
(...) Yes. It will only display two counter readings, then stop! See the "return 0;" statement. It is inside the while (1) loop. Take it out of the loop, and I am shure this one will also work. At least with 0.2.4 it does. (...) Here the return (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Persistent globals
 
(...) No. You can not easily see the difference between static and non static data in the linker scripts to decide into which section to put the data. I would recomment a header file "persistent.h" and some documentation about that. We could modify (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
I am using Linux. It is a minimalistic setup, but I have downloaded all of the extra stff that needs to be used for legOS. Before this error happens, legOS.srec is built, which I did not know before. Now I get errors involving the include files in (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
(...) Hmm. DJGPP or Cygwin? I thought it was cygwin, but that sounds like a DJGPP problem. (...) Again, DJGPP or Cygwin? Thanks, Andy- I'm sorry to bug you, but I'd really hate to be responsible for putting out something that I know is broken. Luis (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
I downloaded the tarball, and tried to compile it. when I an in /boot, it tries to do a genlds, and exits with an error. When I try to run genlds, it says Segmentation Error(or fault, I can't remember). I think the only reason that I can use 0.2.3 (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
Ack! You are still having problems with 0.2.4? I thought your problem was with the compiler, and not legOS? <flips through old Andy Gombos posts on lugnet> Is this still the merge-map problem? I figured out the situation, and fixed it in CVS. Sorry (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
I figured you would be glad that I was not running 0.2.4. I cannot get it to compile correctly, so I use 0.2.3 instead. The two full programs are below, in case you wanted to see them in full. Andy ----This one does not work---- #include <dsensor.h> (...) (24 years ago, 25-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
(...) phew :) Had me scared there for a while. I'll probably still take a look at it later- I just didn't want to have caused a bug so soon after starting to apply patches. Luis (...) ---...--- "Summertime... and the living is easy... fish are (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
Hee, Hee. It was 0.2.3, not 0.2.4. Here is the code snippet that setup and read the values. The current(working) code takes out the refresh, and changes the delay to msleep. ds_active(&SENSOR_2); ds_rotation_on(&SENSOR_2); (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Persistent globals
 
(...) Do you think that is possible to change the behavier of legOS loading to obtain the expected behavier for static data without the trick? Bye, Paolo. --- "Do not follow where the path my lead Go instead where there is no path and leave a (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) That should be great! :-) (...) use (...) Absolutely True!!!! :-) (...) I'm quite sure that you can do it!!!! :-) And this should be a real step forward!!!! What a beautiful thing to have some time to spend in this section of code... :-) I'm (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) Let me think about how to uncouple this from sys_time, so the code can get higher resolutions. (...) Yes, but even if all active sensors are turned of we are running with a lot of CPU power due to the high sampling speed. If you lower the (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
(...) That's a good question. Is this the latest tarball? If so, there have been some modifications to the refresh loop, and this may indicate a bug in them. In other words, it could be the double sets of lcd_refresh() and not the actual reading (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
I added back in the display code, and left out the lcd_refreshes. Then I got a proper counter. I wonder why the refresh was throwing the reading off. Thanks for all your help, Andy (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  RE: light sensor problem?
 
(...) I've used the OC1B interrupt for my servo driver code in pbForth. You could use the OC1B to set the settle time for each reading, and then actually read the results when the interrupt expires. Having a structure to tell you which A/D to read (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) :-) It is not the best implementation I've seen... :-) (...) Yes. I hate the delay loop but we I can't imagine how to do it better if we still need maximum speed in reading values from sensors. The routine also change his sampling speed if we (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) That's good. Now I wonder about some other questions: - Will it get the same value as the original firmware? - Will be influenced by offset (eg. from battery voltage)? In other words, do you think that the settle time is enough? I've tested (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
Well, I do not know if I have to have code to display the values. I do not get anything on screen when I run this code. If I put a loop, and with every loop, the sensor value is being displayed, then I get the values mentioned before. I run the (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Rotation Sensor Values
 
(...) Andy- Have you set up the rotation sensors correctly? You need to do a few things before you get reasonable values for the rotation sensor. 1) use ds_active(&SENSOR_1) to turn on the sensor. 2) use ds_rotation_on(&SENSOR_1) to turn on the (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Rotation Sensor Values
 
I was reading about rotation sensors for legOS for a new robot, and thought I'd try it out. So, I made a simple program that would show rotation sensor values on the display. What I got was not what I expected. I have never used the rotation sensors (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  dsound
 
Hi Luis, (...) I wonder if it would be interesting to include a small utility I wrote assisted by a friend of mine (Paolo Masetti) to convert MIDI files into LegOs C code: since then all of our robots are equipped with a subroutine generated by this (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Grey Archs Needed, 1x1
 
Jason- I don't know the references offhand, but there are a number of lugnet lists dedicated specifically to trading and/or buying of Lego parts. I'm not flaming you for being OT or anything- just that you are much, much more likely to have success (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Grey Archs Needed, 1x1
 
Hi Guys, I really need a couple of 1x1 light grey archs. Find the pic at: (URL) or Trade. Thanks. Jason (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) Right. I made the connection between Kekoa saying "I need to test" and you saying "I will test" right /after/ sending the message, of course :) (...) True. (...) I figured this would be the case. gcc is a wonderful tool, but it does tend to (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) This is why I want to measure things in our lab at work ;) (...) And keeps lower prio tasks from running, which they could do if we slept... (...) Oh well, there are some optimizations missing. I just looked at the code generated by (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) proof that this occurs (even though his logic does seem pretty dead on.) (...) Well, we do... time_t current_time = sys_time; while (sys_time < current_time + the amount of time I want to wait) { do nothing; } It's not pretty, but it is (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Ideas for 0.2.5 (was: Re: Possible bug with bss allocation)
 
This will be my last post for a few hours- I have real work to do :) (...) Generally, user programs have it pretty simple for this already (which is why I had thought of this some time ago, and then dismissed it.) I had never considered the (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) (URL) > I doubt we need this very fast reading of sensors. This makes implementing (...) Yes, when we have user space timers... (...) This is correct, but there are many good reasons for keeping assembly low bandwidth, like pitfalls in (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Ideas for 0.2.5 (was: Re: Possible bug with bss allocation)
 
(...) Shure, no problem. (...) While we are at it, I have two other major changes in mind: - Implement timers. A timer would install a callback function with a private to the caller void * argument. This callback function is called at the timers (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) :) Bad is, of course, all relative... (...) Yes, though IMHO fast = good. It allows us to do things with legOS that might not be doable with other firmwares. (...) I'm not sure which comments you are referring to- do you have a URL for the (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) It doesn't surprise me that someone has already worked this out. (...) It really, really doesn't surprise me that Michael was the one who worked it out. If no one thinks it is too big an overhead, I can put it in in an hour or so when I do a (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) Oh! So readings are more stable, and it isn't just my imagination. That's good to know :) (...) Those values used to pretty cleanly define max and min- or at least, they must have, since I consistently got 15-105 values (or roughly what he (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) To achive scaling of light sensor reading from 0..100 the following theoretical formula should be used: light = 146 - scaled / 7, where scaled is the reading of AD_X >> 6. I found this at (URL) this page contains a lot of electrical (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Possible bug with bss allocation
 
(...) Paolo and others: Eddie and I have talked about this, and we both agree that this is a big change- so I think we are aiming for this for 0.2.5. Since it has already been seven months since 0.2.3, I think we'll aim for getting 0.2.4 out the (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) I looked through the dsensor stuff, and it looks quite bad to me... We execute a delay loop inside an interrupt handler. We issue the command to start the next read from that same handler. This will read the sensors very quickly, for the cost (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) I'm the one that fixed active sensor reading... :-) Settle time is one of mine... Kekoa msg about this problem (a very old one in this ng if I remember) helped me to solve things. (...) I patched the reading routine in ds_handler to fix a vary (...) (24 years ago, 24-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: Possible bug with bss allocation
 
"Eddie C. Dost" <ecd@skynet.be> wrote in message news:200007222049.WA...set.net... (...) trivial, (...) In my opinion this is a great idea! :-) Please do the implementation! It also could be very usefull to have some docs / makefile options to make (...) (24 years ago, 23-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) Having fixed the other screwup, I can report that snipping the code I discussed earlier allows everything to build just fine. It doesn't, however, solve the issue with the light sensors. I also tried swapping the two lines I mentioned earlier: (...) (24 years ago, 23-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: semi, sort of, not quite but almost 0.2.4
 
Slight problem with lcd.c that would have prevented a clean build has been fixed. Feel free to try again :) Luis (...) fish are jumping and the cotton is high... So hush, little baby, baby don't you cry." -Ella ---...--- (24 years ago, 23-Jul-00, to lugnet.robotics.rcx.legos)
 
  Re: light sensor problem?
 
(...) It has changed from 0.1.x- Markus (who seems to have just about disappeared off the face of the planet) re-wrote a lot of that. On the other hand, in the actual ds_handler function not much has changed: the only thing that is apparent is that (...) (24 years ago, 23-Jul-00, to lugnet.robotics.rcx.legos)
 
  first small error
 
The tarball has at least one .orig file in it (a leftover from some patches I applied last night.) Ignore them- they shouldn't affect the build at all, and I'll get them out for later. Luis ---...--- "Summertime... and the living is easy... fish are (...) (24 years ago, 23-Jul-00, to lugnet.robotics.rcx.legos)


Next Page:  5 more | 10 more | 20 more | 100 more

Redisplay Messages:  All | Compact

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