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 / 1783
1782  |  1784
Subject: 
Re: Swan firmware crash!
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Wed, 20 Jul 2005 07:31:20 GMT
Viewed: 
6424 times
  
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 luck in identifying the problem.

Steve

* 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{
  SetMotorPower128(MTR_A,100);
  SetOutput(MTR_A,OUT_REV);
  Wait(300);
  Off(MTR_A);
}

You can see that specifying all the code is quite unuseful:it's just a banal
test code!
I wrote MTR_A but in other programs MTR_A don't work, so I had to write OUT_A
instead of MTR_A.

When RCX is told to execute the SetMotorPower128 command, it beeps, shows "40"
and the legoman blinking.  <:-(

I hope now it's enough.

Thank you all!



Message has 1 Reply:
  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)

Message is in Reply To:
  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)

23 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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