Quote:
Originally Posted by Jim.D
Thanks Jon,
I had looked at that. I also have noticed the problem with the reset. My main problem was that I wanted to read the encoder position.
|
This isn't a great solution, but one way to read the encoder position is to repeatedly call ConstantSpeed with power set to "0". This keeps the encoder logic running.
So, in a pinch you can have a loop that contains "Constant Speed, followed by Read Encoder and a short time delay... maybe 20ms"
I've still had problems with this approach, but it's better than nothing.
I was going to post a snyde remark to "Sean" indicating that while Pots are a good solution, they are not available to us in FTC..... but then I thought..... Wait, If I use a NXT prototyping board, and the POT is attached to that board, it IS legal..... Hmmm.... potential....
So, Thanks Sean.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org
FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor