| | 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)
|
|
| | Re: Attention please: Swan Problem demi-solved!
|
|
Here's the problem! I don't have fast0103.lgo, on swan's site there's only version 1.01. I think using that firmware (where can we find it?) and new NQC API all my problems are solved. About driving servo: to generate PWM for servo motors a (...) (19 years ago, 21-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: Attention please: Swan Problem demi-solved!
|
|
(...) Quite possibly you have an old version of the Swan firmware. My copy is called fast0103.lgo dated 2005-01-13. Dick sent me an updated version back then when I was working on the NQC API for his firmware. I don't know if it is available (...) (19 years ago, 21-Jul-05, to lugnet.robotics.rcx.nqc)
|
|
| | Attention please: Swan Problem demi-solved!
|
|
I tried to use files included in OLD test_swan.zip and RCX don't throw exception 40 no more! Then I tried a program with #include "swan.nqh" with latest NQC version and RCX throws exception no.5! To Dick Swan: NQC API is changed from old test_swan (...) (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!
|
|
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)
|