|
Re: Programming Shaft Digital e4p
What have you tried?
Have you tried the FRC Encoder Example project that can be found under the FRC Examples. Turn the conveyor by hand 7 time to see how many "clicks" it takes to rotate 7 times.
Then when you start the conveyor reset the counter to zero (see how that is done in the example). Each time though the loop read the Encoder and check if it is passed the number of 'clicks' for 7 rotations.
We will need a little more detail about how your conveyor is controlled and how are you going to signal it to start (joystick button?)
But let us know if you have tried the Encoder Example first.
__________________
Omar
|