| | Re: Rotation Sensors - slightly dissapointed...
|
|
Stefan Elsner wrote in message ... (...) I cannot remember if it is apporpriate to post code here (off topic, perhaps? <shrug>) but otherwise I would show you what I've done. For this purpose I had the motor rotating the sensor to about 64 and then (...) (25 years ago, 17-Feb-00, to lugnet.robotics)
|
|
| | Re: Rotation Sensors - slightly dissapointed...
|
|
(...) I believe there are subtropics in www.lugnet.com/lugnet.robotics for posting code. (...) (25 years ago, 17-Feb-00, to lugnet.robotics)
|
|
| | Re: Rotation Sensors - slightly dissapointed...
|
|
Did you have a ClearSensor() after every rotating back to 0? Stefan Rebel Transcanner <hendryjr@oxford.net> wrote in message news:Fq3Cz4.1so@lugnet.com... (...) 0, (...) (25 years ago, 24-Feb-00, to lugnet.robotics)
|
|
| | Re: Rotation Sensors - slightly dissapointed...
|
|
Stefan Elsner wrote in message ... (...) ...No, and that wouldn't do any good, because the error occurs before it returns home - and if it's already at 0 (home) then clearing it isn't going to make it any "homier" (^: The only practical solution I (...) (25 years ago, 24-Feb-00, to lugnet.robotics)
|
|
| | Re: Rotation Sensors - slightly dissapointed...
|
|
I think that motors need time to stop. If you rotate a motor backwards until the Sensor shows 0, then turn it off, it might go to -2 until it is fully stopped. So if you do a ClearSensor() afterwards your motor is off by two counts and your code (...) (25 years ago, 25-Feb-00, to lugnet.robotics)
|
|
| | Re: Rotation Sensors - slightly dissapointed...
|
|
Stefan Elsner wrote in message ... (...) I developed a vector-based code in which I set a variable to the location I want the motor to spin to, and mount the sensor directly on the gearmotor. The idea is I can implement this code into any of my (...) (25 years ago, 25-Feb-00, to lugnet.robotics)
|