To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 2894
2893  |  2895
Subject: 
Re: How to find out if the motors are running using Spirit.OCX
Newsgroups: 
lugnet.robotics
Date: 
Sun, 17 Jan 1999 17:01:39 GMT
Original-From: 
Chris Stanley <CSTANLEY@antispamUSIT.NET>
Viewed: 
985 times
  
it sure is!  from a visual basic perspective, use:

RCX.Poll(3, n)

given your spirit is named RCX and "n" is the motor you want to check (0-2).  the byte
that is returned is packed as follows (from the spirit.ocx sdk):

Bit 7: ON/OFF 1/0
Bit 6: Brake/Float 1/0
Bit 5: Output no. HiBit
Bit 4: Output no. LoBit
Bit 3: Direction CW/CCW 1/0
Bit 2: PowerLevel Most significant bit
Bit 1: PowerLevel
Bit 0: PowerLevel Least significant bit

or (shameless plug follows) use my utility rcx interrogator to tell you all this and
much more at:
http://www.csepaintball.com/chris/rcxi.html

hope this helps!

--
Chris Stanley
cstanley@usit.net

Rob Giannini wrote:

Does anyone know if it's possible to find out if the Mindstorms motors are active ?

--
Did you check the web site first?: http://www.crynwr.com/lego-robotics

--
Did you check the web site first?: http://www.crynwr.com/lego-robotics



Message is in Reply To:
  How to find out if the motors are running using Spirit.OCX
 
Does anyone know if it's possible to find out if the Mindstorms motors are active ? -- Did you check the web site first?: (URL) (25 years ago, 16-Jan-99, to lugnet.robotics)

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