Open Liam794 opened 4 years ago
One change I tried to stop the robot from zigzagging on straight lines after corners was to make the default speed for motorR = vRight - 10 and motorL = vLeft -10. This made it take corners slower and ended up making the robot follow the lines more accurately. Maybe give it a try
Got a version of the equation working. motorL = vLeft + kp error; motorR = vRight - kp error; This was the semi code Arthur provided in the lecture. I just completely missed it. And I couldn't put it in code the other day either. Sorry team.
Changes therefore are:
I will upload a branch and put an issue with these exact same changes.
Tried adding motorL = 50 under the "if(pix > 250){ "here" isWhite = 1; } along with motorR, but unfortunately it didnt work the way intended and cannot turn the rate i need for it to be able to make sharp turns.
I tried to add and take away "vRight/2 " and "vLeft/2" to see if they were causing the issue but no change occurred.
will keep issues updated on progress.