I'm trying to build a line follower robot and I'm interested in predicting the curves on the track. I have 8 binary sensor array(qre1113). My goal is to make a system that it can generalize what it learned about the curves and give me predictions about where should be at the line to pass it as fast as possible.
How can I integrate a system like Q learning and how can I train it? And also how can I combine this system with a Type C PID controlller ?
This is a important project for me and i am kinda running on clock so quick help would be appreciated