| | C Compiler for Windows 98
|
|
I have been using NQC for some time now and would like to move up to C++ programing with LegOS or BrickOS. I have spent many hours following the instructions on (URL) success in getting a working system. I have decided to try WinLegOS as suggested (...) (22 years ago, 24-Nov-02, to lugnet.robotics.rcx.legos)
|
|
| | Re: Installing BrickOS 0.2.6.09.newConf2
|
|
(...) Its a bug, fixed in the cvs version of brickOS, I believe. For now, adding: CFLAGS+=-D_WIN32 to the top of Makefile.common might work. I can't test it, because I don't have the h8300 compiler set up at the moment. -- Max. (22 years ago, 24-Nov-02, to lugnet.robotics.rcx.legos)
|
|
| | Installing BrickOS 0.2.6.09.newConf2
|
|
Hi, I tried to install brickos 0.2.6.09.newConf2 using the (URL) tutorial, everything goes kind of smoothly untill i have to type make strip in /brickos-0.2.6.09.newConf2/util cygwin responds with: $ make strip strip fontdesign.exe strip: (...) (22 years ago, 24-Nov-02, to lugnet.robotics.rcx.legos)
|
|
| | Re: LNP-problem...
|
|
(...) Hi, I'm Pieter and working with Tom on a project. I 've tried you're code but it doesn't work. To me the problem seems to be with lnpd. Here is it's log of the session. 0:Info > created lock file /var/lock/LCK..ttyS0 233:Info > running in (...) (22 years ago, 23-Nov-02, to lugnet.robotics.rcx.legos)
|
|
| | Re: Why...
|
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 (...) The OS should not impose conditions on the programmer. Just put in the docs "numbers less than 5ms (the default) are not recommended" or something to that effect. (...) My code isn't a task. It's (...) (22 years ago, 23-Nov-02, to lugnet.robotics.rcx.legos)
|
|
| | Re: LNP-problem...
|
|
That looks ok to me. But I'm no expert on LNP. Here's a clip I use. It looks a lot like what you're using. It seems there may be a problem with your receive code. I'm REAL shaky on that. What does fputs do? ---- char *s; s = "101"; if (strlen(s)>0) (...) (22 years ago, 21-Nov-02, to lugnet.robotics.rcx.legos)
|
|
| | Re: LNP-problem...
|
|
(...) ok this is the (relevant) code running on the rcx: int main(int argc, char *argv[]) { char *p; init(); execi(&PacketWatcher, 0, NULL, PRIO_NORMAL, DEFAULT_STACK_SIZE); execi(&Messenger, 0, NULL, PRIO_LOWEST, DEFAULT_STACK_SIZE); return 0; } (...) (22 years ago, 21-Nov-02, to lugnet.robotics.rcx.legos)
|
|
| | Re: Motor Control Register (0xf000)
|
|
(...) It's the one I meant, thanks. Jürgen (22 years ago, 21-Nov-02, to lugnet.robotics.rcx, lugnet.robotics.rcx.legos)
|
|
| | Re: Why...
|
|
Nick, Setting the timeslice to a low number (5ms is fairly low), negetively effects overall system performance. Time used by the operating system for task switching is taken away from applications. If a switch takes .5ms (for example) and you switch (...) (22 years ago, 21-Nov-02, to lugnet.robotics.rcx.legos)
|
|
| | Why...
|
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ... is the minimum timeslice interval 5ms? I'm writing a program that needs a routine to be run every 1ms for a period of time. I did this by setting it as the timeslice handler, but then I needed to (...) (22 years ago, 16-Nov-02, to lugnet.robotics.rcx.legos)
|