Hi, I would like to know what the code is for the “read_line” function in the 3Pi library. I have a line sensor with 8 receivers, and I want them to give a output similar to this function. The weighted average of the sensor over the line.
The code is available in the libpololu-avr repository on Github. Here is the link to read_line.
Thanks Ryan. I will try to apply it to my thing tomorrow.
It works perfectly! I was trying to get a good value from my sensors that could be used in PID, and this is just great! Thanks!