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 / 1781
  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: 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)
 
  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!
 
(...) * 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!
 
(...) 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!
 
(...) 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!
 
(...) I already post a simple code that causes the error: (URL) task main{ SetMotorPower128(MTR_A,100); SetOutput(MTR_A,OUT_REV); Wait(300); Off(MTR_A); } The command SetMotorPower128 is the cause. (if I remove it, all works). Today I get also the (...) (19 years ago, 20-Jul-05, to lugnet.robotics.rcx.nqc)
 
  Re: Swan firmware crash!
 
(...) This is the old-style Swan API which is deprecated. The Swan API built into NQC uses MotorPower128(n) and SetMotorPower128(n, m). With the latest version of NQC you no longer need to include the old swan.nqh header file. The old swan.nqh file (...) (19 years ago, 21-Jul-05, to lugnet.robotics.rcx.nqc)
 
  RE: Swan firmware crash!
 
I have put "fast0103.lgo" on web page. It appears that web page on my ISP (drjsoftware.com) doesn't match the local copy on my PC's hard drive. It will take me a few days to update. I'm also planning to release a firmware update in the same (...) (19 years ago, 22-Jul-05, to lugnet.robotics.rcx.nqc)

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