We have a robot that performs some operations in Autonomous. the problem we encounter is that all the moves are based on time. Do anyone have a suggestion as to how to track distance or number of turns of a shaft to track distance. At present the program works great only when the battery is at a certain level. If the battery is fully charged it moves to fast and when it gets to weak the distance and turns lag.
If I use the shaft encoder, must I use both input lines to get my results. Also, is it possible to use 2 encoders at one time so that I can regulate the speed that each shaft is turning, or can I only regulate one distance at a time. The reason I ask is because the motors don’t seem to run at the same speed and the robot tends to turn as it moves.
This past weekend we tried to use the quad shaft encoder to run in our autonomous program. Very limited success. The attached image is what code we are trying to test it with. The first part works, it does it’s first operation but then just sits there. What is wrong with the code. It is in Easy CV4 for cortex, version 126.96.36.199