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 / 788
787  |  789
Subject: 
Re: NQC & Rotation Sensor
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Tue, 26 Sep 2000 03:46:05 GMT
Viewed: 
1982 times
  
In article <39CEBCC3.74DFFF0C@akasa.bc.ca>, Dean Husby
<nntp@akasa.bc.ca> wrote:

I have this program that monitors the location of a camera mount in a
360 degree turn. (0 and 16 are 0, 8 is 180 etc) However whenever I use
SetSensor(SENSOR_2, SENSOR_ROTATION);
it blanks the current sensor value when the program is restarted. This
is a HUGE pain as it takes time to reset the mount to 0 if the RCX
powers down.


The reset is a consequence of one of the bytecodes used to configure the
sensor.  I don't see a way to work around it.

I tried to use the other way but so far I can't get it to work.
SetSensorType(SENSOR_2, SENSOR_ROTATION);
SetSensorMode(SENSOR_2, SENSOR_MODE_ROTATION);


This will have the same problem - in fact the generated code is probably
identical (except for perhaps order) to just calling SetSensor().

Sorry I can't help with this one.

Dave

--
reply to: dbaum at enteract dot com



Message has 1 Reply:
  Re: NQC & Rotation Sensor
 
(...) Dave, Thanks for the reply, I had a bad feeling it would be this way. If that wasn't bad enough it keeps losing 2 points when stepped from 0 to 16 and back again... Most annoying. I'm going to move to a touch sensor bump mode... This way my (...) (24 years ago, 26-Sep-00, to lugnet.robotics.rcx.nqc)

Message is in Reply To:
  NQC & Rotation Sensor
 
I have this program that monitors the location of a camera mount in a 360 degree turn. (0 and 16 are 0, 8 is 180 etc) However whenever I use SetSensor(SENSOR_2, SENSOR_ROTATION); it blanks the current sensor value when the program is restarted. This (...) (24 years ago, 25-Sep-00, to lugnet.robotics.rcx.nqc)

4 Messages in This Thread:

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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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