To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1786 (-20)
  RE: Swan firmware crash!
 
Exception error 40 is intended to indicate that you've tried to write to an invalid source parameter value. "Source parameter" is the first byte of an internal interpreter variable (0 is variable, 2 is constant, etc). If you send me the NQC source I (...) (19 years ago, 20-Jul-05, to lugnet.robotics.rcx.nqc)
 
  Re: Swan firmware crash!
 
(...) Here is Bricxcc help about those commands: SetMotorPower128(const int motor, const int &v) Function - Swan Set the power of a motor to the specified value (using a scale from 0 to 127). SetMotorPower128(MTR_A, 100); ___...___ (...) (19 years ago, 20-Jul-05, to lugnet.robotics.rcx.nqc)
 
  Re: Swan firmware crash!
 
(...) That's where your completely wrong. I can see the error, calls to motor power should be set out like this motorPower128(1) = MyVariableName; in this example the constant "1" means set the power to output B to the value specified by (...) (19 years ago, 20-Jul-05, to lugnet.robotics.rcx.nqc)
 
  Re: Swan firmware crash!
 
(...) * Maybe I wasn't too clear, but really there isn't much to say: it is the SetMotorPower128 command that causes the error. * Another question is: why costants MTR_A or MTR_B don't work at all? Here's the code(all the code): task main{ (...) (19 years ago, 20-Jul-05, to lugnet.robotics.rcx.nqc)
 
  Re: Swan firmware crash!
 
(...) You haven't given us(readers) much to go on. I had a similair problem but finding the solution was a bit of a fluke. If you could provide some info like program size, and a description of what the program does or some code we may have more (...) (19 years ago, 19-Jul-05, to lugnet.robotics.rcx.nqc)
 
  Swan firmware crash!
 
Hi. I've installed new NQC and BRICXcc to test new functions in fast firmware by Dick Swan. I wanted to see if the new 1/1000th second resolution could let me drive a servo. When I try to use the SetMotorPower128 command, compiler is ok, downloading (...) (19 years ago, 19-Jul-05, to lugnet.robotics.rcx.nqc)
 
  Re: I've got what Iain Hendry's got, was Re: Swan Firmware
 
(...) Hi John I've fixed the problem. I tracked it down by commenting out parts of my program. Luckily I started on the function containing the problem So I found it very quickly. Solving the problem took longer though. As you can see below I've (...) (19 years ago, 16-Jul-05, to lugnet.robotics.rcx.nqc)
 
  Re: I've got what Iain Hendry's got, was Re: Swan Firmware
 
(...) Can you please email me the NQC source so that I can generate the listing to see if possibly the compiler is generating invalid code? John Hansen (19 years ago, 16-Jul-05, to lugnet.robotics.rcx.nqc)
 
  I've got what Iain Hendry's got, was Re: Swan Firmware
 
(...) I've got the flashing five problem as well, and it's really annoying, I spent most of my Friday in vain trying to fix it. I thought/think it's a stack overflow problem, but after serious optimising of my program It's made zero difference. (...) (19 years ago, 16-Jul-05, to lugnet.robotics.rcx.nqc)
 
  NQC FAQ updated
 
I have updated the NQC FAQ with a description of how to fix a USB Tower problem that many users have experienced when downloading a program via NQC. Many users have reported that they get a "Compile Failed no (or invalid) reply from RCX" error when (...) (19 years ago, 29-Jun-05, to lugnet.robotics.rcx.nqc)
 
  Re: Blocking SetUserDisplay?
 
(...) In C you would declare a as volatile. Jürgen (19 years ago, 11-Jun-05, to lugnet.robotics.rcx.nqc)
 
  NQC release 3.1r2
 
I have released NQC version 3.1r2. The only change from 3.1r1 is a fix to the Spybot FindWorld API function. (URL) Hansen (19 years ago, 10-Jun-05, to lugnet.robotics.rcx.nqc)
 
  BricxCC release news
 
I continue to work on getting BricxCC ready for a new official release. My sincere apologies for not having one out at the beginning of the year as I had originally planned. Life keeps getting in the way. In any case, I have a new update to BricxCC (...) (19 years ago, 6-Jun-05, to lugnet.robotics.rcx.nqc)
 
  Re: Blocking SetUserDisplay?
 
(...) Neither of these work, although the second one does introduce a temporary for everything except for the 0 part. It will result in the display sometimes showing a value of zero. NQC tries really hard to use as few variables as it can so you (...) (19 years ago, 5-Jun-05, to lugnet.robotics.rcx.nqc)
 
  Re: Blocking SetUserDisplay?
 
(...) Thanks for the ideas! Actually these yielded some interesting results: a = 0 + ((x * 100) + y); occasionally yielded 0 (as expected), but never yielded anything other than 0 and the correct value (that I saw). a = ((x * 100) + y); and a = (x * (...) (19 years ago, 5-Jun-05, to lugnet.robotics.rcx.nqc)
 
  Re: Blocking SetUserDisplay?
 
(...) You may be able to work around this by using parenthesis (untested). a = ((x * 100) + y); or you might try a = 0 + ((x * 100) + y); John Hansen (URL) (19 years ago, 5-Jun-05, to lugnet.robotics.rcx.nqc)
 
  Re: Blocking SetUserDisplay?
 
(...) That's the only way around it as far as I know. JB (19 years ago, 4-Jun-05, to lugnet.robotics.rcx.nqc)
 
  Blocking SetUserDisplay?
 
I have a program with a setup routine for calibrating light sensors. During the setup routine, it does: SetUserDisplay (a, 2); Then in a loop, reads the values of 2 light sensors into x & y, averages the readings and then does: a = x * 100 + y; to (...) (19 years ago, 4-Jun-05, to lugnet.robotics.rcx.nqc)
 
  Re: New NQC API for RCX-Spybot or RCX-RC communication
 
(...) John, I have a few beginner questions for you. I am trying to emulate the infrared protocol on a different microcontroller. I want it to be able to be controlled by a Lego remote and to send/receive messages to Lego devices. What format does (...) (19 years ago, 21-May-05, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc, lugnet.robotics.spybotics)
 
  Re: Inexpensive portability
 
(...) Thanks for the suggestions. After seeing this one, I realized I have an old HP Pavilion N3110, 32mb RAM running Win98, sitting behind the desk, quite literally just collecting dust. I found the power cord and a serial port IR tower. After a (...) (19 years ago, 30-Apr-05, to lugnet.robotics, lugnet.robotics.rcx.nqc)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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