Encoder pulse counting
NickM
Posts: 2
Hello,
My boebot is programmed as a linefollower with IR sensors. While this program is running i want to get the distance travelled (with·2 encoders).
In a test program i use the code: CPU.count(6,CPU.pin14,true) in a constant while to count the encoders output.
My question is: how can i get the distance travelled while executing the linefollower program?
is there any way to use a VP with the encoders while the linefollower program runs? or do i need an external counter?
thanks in advance!
My boebot is programmed as a linefollower with IR sensors. While this program is running i want to get the distance travelled (with·2 encoders).
In a test program i use the code: CPU.count(6,CPU.pin14,true) in a constant while to count the encoders output.
My question is: how can i get the distance travelled while executing the linefollower program?
is there any way to use a VP with the encoders while the linefollower program runs? or do i need an external counter?
thanks in advance!