Quote:
Originally Posted by jbbjjbt
We've been messing with the encoders for autonomous and haven't much success so far using Labview. We had a lot of difficulty. We'd run the same program 4 times and get 4 totally different results. Sometimes both encoders reset, sometimes only one, sometimes none.
|
Hmmm. I had reported that to NI a while back. I found that the "failure to reset" seemed to be related to the speed that you commanded the motors to move afterwards.
If you sent an encoder reset command, and then gave the motor a high power move, it was more likely to ignore the reset state and revert back to the last encoder count. However, if you only gave a low power move, it seemed to keep the reset most times.
It's as if there is some race condition that if the encoder counts before the reset is complete it gets messed up.
I've really been hoping that I could use LabVIEW for both FTC and FRC, but if it's not reliable I'm going to be forced to change.
Any issues to report with RobotC?
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org
FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor