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 / 13782
13781  |  13783
Subject: 
RCX/CM doc on reading sensors using Get Value <source> <argument>
Newsgroups: 
lugnet.robotics
Date: 
Mon, 8 Jan 2001 13:47:40 GMT
Viewed: 
751 times
  
I'm building my own Java code to drive the CM from my PC COM port.

Now I have some testing/lab sw which reasonably reliably writes to and reads
from the COM port, I got stuck at read sensor using the GetValue opcode 0x12.

I can read the variables 0..31 (yet need to fix problems with the sign)
but when attempting to read the sensors I don't get sensible replies from
my CM.

I.e. when I send
  12 00 00
  ...
  12 00 31
I get answers as expected

but when I send
  12 09 00
  ...
  12 09 02

I get crap

Then I tried setting the sensors, because the seem to be RAW by default
also these messages fail.
Also tried setting them to 'boolean' (using RCX-CC), and reading them with
  12 0d 00
  ...
  12 0d 02

but all in vain.
Who has any hints?

Theo.



Message is in Reply To:
  RCX/CM doc on reading sensors using Get Value <source> <argument>
 
Thanks to y'all. As we could have expected Kekoa DID indeed have it documented. As he points out in his reply it's just in a different location, and I missed the connection. (see below included) Great works Kekoa! Great. Another mistery solved. Now (...) (24 years ago, 4-Jan-01, to lugnet.robotics)

3 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    
Active threads in Robotics

 
Verified and Trusted Team of Hackers
5 hours ago
Custom Search

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