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 / 17448
17447  |  17449
Subject: 
Not able to read sensor values from RCX-Unit
Newsgroups: 
lugnet.robotics
Date: 
Tue, 12 Mar 2002 14:09:59 GMT
Original-From: 
Martin Flade <martin@flade&saynotospam&.de>
Viewed: 
820 times
  
Hi,
i'm trying to write a program that makes a Legoroboter able to
navigate in different rooms / labyrints. For this the computer needs
to know, when one of the touch-sensors is pressed. I use poll(9,x)
for this. My problem is that the returned value is something between
0 and 8600. This changes randomly. But the value doesn't change, if
the sensor is pressed. I have this problem with every kind of sensor.
The battery sensor returns a value of -13488.  But i can send commands
like setting motordirections or turning motors on/off without problems.
I ran the same programm with the same RCX-Unit on a different computer
and there it worked. What might be wrong with my computer?
I hope u can help me...



1 Message 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