Subject:
|
How to get sensor's values from the opcodes
|
Newsgroups:
|
lugnet.robotics.rcx
|
Date:
|
Thu, 26 Jul 2001 16:06:16 GMT
|
Viewed:
|
1677 times
|
| |
| |
i'm trying to get the sensor's values using the opcodes.
So i used this command to get it:
sendCommand("420001"); //setting the sensor mode
bash> b5
sendCommand("120900"); //getting the value
bash> 00 // if the Touch's Sensor is released
bash> 03 // Otherwise
But, i add a second sensor (rotation's sensor) and i can't get a real
value, for example: if i send this command
** sendCommand("320104"); //setting the sensor type = rotation
bash> c5 // ok
sendCommand("120901"); //getting sensor's value
bash> 00 // always
after i send (**) i can't get the real sensor's value, although
i can see the correct value in the LCD
which commands Should i have to use in order to get the real value of that
sensor ?
Thank you very much
|
|
1 Message in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|