| | 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)
|
|
| | RE: H8/300 Assembler/C interface
|
|
(...) Ahhh, that makes it awkward with the RCX ROM calls, but I'm pretty sure I can make my assembler source compatible with this. I'm just getting ready to release an assembler RCX serial library that is either polled or interrupt driven. Any (...) (23 years ago, 19-Apr-01, to lugnet.robotics.rcx)
|
|
| | Re: H8/300 Assembler/C interface
|
|
(...) By the caller? No. They are callee-save. -Kekoa (23 years ago, 19-Apr-01, to lugnet.robotics.rcx)
|
|
| | RE: H8/300 Assembler/C interface
|
|
(...) Thanks Kekoa. One more question, are the other registers r3,r4,r5,r6 considered volatile across a function call in GCC? Cheers, Ralph (23 years ago, 19-Apr-01, to lugnet.robotics.rcx)
|
|
| | 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)
|
|
| | Re: H8/300 Assembler/C interface
|
|
(...) Yeah, you are right. My bad. -Kekoa (23 years ago, 19-Apr-01, to lugnet.robotics.rcx)
|
|
| | RE: H8/300 Assembler/C interface
|
|
(...) Not necessarily, that's why I'm asking. If the caller cleans up the stack, then the function just does an RTS and the caller adjusts the stack because it knows how much stuff was pushed on. For programs with lots of calls, this generates extra (...) (23 years ago, 19-Apr-01, to lugnet.robotics.rcx)
|
|
| | Re: H8/300 Assembler/C interface
|
|
(...) Also: - caller cleans up parameters on stack - stack pointer is r7 The caller must clean up stack parameters b/c the return address is pushed after parameters are. -Kekoa (23 years ago, 18-Apr-01, to lugnet.robotics.rcx)
|
|
| | Re: H8/300 Assembler/C interface
|
|
(...) Somebody correct me if I'm wrong. I just compiled some programs to check this. I believe that maybe the *ROM* calling convection is as Ralph described, but almost definitely the GCC calling convention is: - r0, r1, r2 hold parameters from left (...) (23 years ago, 18-Apr-01, to lugnet.robotics.rcx)
|
|
| | RE: RCX+PC=Rubik's Cube Solver
|
|
(...) DUDE! These are unbelievable......I would never even consider doing something like this due to other time constraints like partners and kids. These are amazing - a must see and candidate for Site of the Week, no? Cheers, Ralph Hempel (23 years ago, 18-Apr-01, to lugnet.robotics, lugnet.robotics.rcx)
|
|
| | RCX+PC=Rubik's Cube Solver
|
|
All -- There's recently been some discussion in the Mindstorms Forums about the feasibility of producing an RCX-based Rubik's Cube solver. I am happy to report that I have finished a functional "late beta" version. You can see it at (URL) are (...) (23 years ago, 18-Apr-01, to lugnet.robotics, lugnet.robotics.rcx) !!
|
|
| | Re: Declarations in header files
|
|
(...) "extern inline" means that we are defining an inline function, but if the inline function is not used, there is also an externally defined function with the same purpose. So, if you compile without optimization, it acts like "extern void (...) (23 years ago, 18-Apr-01, to lugnet.robotics.rcx.legos)
|
|
| | Data-transfering RCX -> PC in LeJOS
|
|
I'm trying to transfer some log-data from the RCX to the PC, using the "Serial.sendPacket(byte[] aBuffer, int aOffset, int aLen)", but it does not seem to work with a packet-length bigger than approx.. 24 bytes. The packet is constructed as a (...) (23 years ago, 18-Apr-01, to lugnet.robotics.rcx.java)
|
|
| | H8/300 Assembler/C interface
|
|
Does anyone know offhand what the calling convention between C/C++ and H8/300 assembler is using the GNU tools? The assumptions I'm making are as follows: R7 is the stack pointer R6 is the first (leftmost) parameter passed and the result R0-5 are (...) (23 years ago, 18-Apr-01, to lugnet.robotics.rcx)
|
|
| | NQC and Fixed Point Values
|
|
My recent project, with NQC, has started to demand calculations with fractional numbers. In an effort to do this, I have quickly come to know the sorted world of floating points, BCDs, 1 2 s complement etc. I realize the only way to go about all (...) (23 years ago, 18-Apr-01, to lugnet.robotics.rcx.nqc)
|
|
| | Re: Using 'containers' in Robolab
|
|
Thanks to you and Ben Irwin for your replies. After considerable beating my head against the wall I found my mistake: For the value in the angle container I had a constant instead of 'value of port 2' modifier. I surely will not forget that one. (...) (23 years ago, 18-Apr-01, to lugnet.robotics.rcx.robolab)
|
|
| | Re: Electrical Data Link between 2 RCXs
|
|
It's me again with some improvements for an "Electrical Data Link between 2 RCX". In the current version I changed the default condition of the link to "high" (in the transmitter: OFF(OUT_B)) so that the receiver has a 1 at its sensor input. So, you (...) (23 years ago, 17-Apr-01, to lugnet.robotics.rcx.nqc)
|
|
| | RE: New RcxCC revision posted
|
|
Hi, Ok, so, I got home, downloaded the .zip, installed it on my "LegoStation" (a 486 with RCX2 on COM2 and CyberMaster on COM3) over the last version. I think this was the "3.2 May 16th" Version. Started up, defined the window sizes and positions (...) (23 years ago, 17-Apr-01, to lugnet.robotics.rcx.nqc)
|
|
| | error from makelx: address out of bounds
|
|
Hallo! My question again: I tried to declare sensors global, out of main(): Motor motor(Motor::B); LightSensor s(LightSensor::S3,false); int main(){ ... } make reports an error: /home/micha/legOS/util/makelx test.ds1 test.ds2 test.lx test.ds1: (...) (23 years ago, 17-Apr-01, to lugnet.robotics.rcx.legos)
|