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 / 1707
1706  |  1708
Subject: 
Re: Forward or backward?
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Mon, 15 Nov 2004 11:56:07 GMT
Viewed: 
5373 times
  
In lugnet.robotics.rcx.nqc, Steve Lane wrote:

...needs to know in which direction one of the motors is set.

   Warning: I've never actually used it but... x = OutputStatus(n), where n = 0,
1, or 2 (not OUT_A, OUT_B, etc.... at least accoding to the NQC manual) and x is
the result. The result contains a boatload of information (see
http://news.lugnet.com/robotics/rcx/nqc/?n=1646) but essentially is a bitflagged
status of the requested motor settings (as I recall, the SDK documents this
rather cleanly, but I don't have it handy).

--
Brian Davis



Message is in Reply To:
  Forward or backward?
 
I've just got back into Mindstorms and I'm updating an old program. I'm writing a task that needs to know in which direction one of the motors is set. Now I could have sworn their was an easy way to do this, but my memory has gone blank and the help (...) (20 years ago, 15-Nov-04, to lugnet.robotics.rcx.nqc)

2 Messages in This Thread:

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

Custom Search

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