|
Re: [FTC]: Progress report on using encoders
I just setup a LabVIEW ap to illustrate the problem.
This code runs a loop where the encoders are reset, the motors run for a second, and then stopped for a second. This repeats while the encoder position is charted.
The first attached images are bad case where the motors are turned on immediately after resetting the encoders. The data shows how often the encoders don't get reset.
The second image set is better, I assume, because there is some delay between the reset and move. Only forgets to reset a couple of times
Adding a delay probably helps this code, but I want to know for sure that the encoders will reset properly.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org
FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
|