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 / 1745
  Re: Swan Firmware
 
(...) I feel so awful asking this, becuase I'm sure it must have been covered somewhere before - I'm not very good at understanding quite how everything works (API's and includes and so forth - no idea what that stuff is!). But here's my question: (...) (20 years ago, 6-Feb-05, to lugnet.robotics.rcx.nqc)
 
  Re: Swan Firmware
 
Okay, okay, bad form responding to my own post. I got the new firmware on my RCX, downloaded the latest version of BricxCC, and NQC. But I can't figure out how to use this SetUserDisplay command? I want to show a variable on the display. I have no (...) (20 years ago, 6-Feb-05, to lugnet.robotics.rcx.nqc)
 
  Re: Swan Firmware
 
(...) Having downloaded a copy of swan_test.zip which contains the latest test release of BricxCC and NQC you can use nearly all the new and enhanced features in the Swan firmware. You can view the "official" API built into NQC by executing the (...) (20 years ago, 6-Feb-05, to lugnet.robotics.rcx.nqc)
 
  Re: Swan Firmware
 
(...) Um. I have no idea what an API is :-/ (...) Oh my god. I'm completly lost :( (...) Whaaa?? (...) When I copy/paste that into BricxCC, I get an when I hit the Compile/download button: Undefined function: "SetUserDisplay"...?? I think I'm going (...) (20 years ago, 7-Feb-05, to lugnet.robotics.rcx.nqc)
 
  Re: Swan Firmware
 
(...) Application Programming Interface (URL) Oh my god. I'm completly lost :( Sorry. (...) I'm not sure what you are confused about. The API defines a series of values and functions which you can use in your NQC programs. The three lines above show (...) (20 years ago, 7-Feb-05, to lugnet.robotics.rcx.nqc)
 
  Re: Swan Firmware
 
(...) No no, don't be. It's my own stupidity/ignorance in progrmaming terms. I'm slowly learning. (...) Good stuff, John. Thank you for your work on this, it's unbeliveable. I got it to do what I need. Now, the only problem is it doesn't seem to (...) (20 years ago, 9-Feb-05, to lugnet.robotics.rcx.nqc)
 
  Re: Swan Firmware
 
Hey Guys, Any ideas on that code, regarding that error no. 5? Iain (20 years ago, 11-Feb-05, to lugnet.robotics.rcx.nqc)
 
  Re: Swan Firmware
 
(...) Heloooooooo? (Well, never mind I guess. Went back to the old firmware anyway 'coz this new one doesn't work.) Iain (20 years ago, 4-Mar-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)
 
  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)
 
  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)
 
  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