I have been working on a small project of mine. It's pretty much a robot that goes forward using a gyroscope. I am aiming for very high accuracy in this case.
I have two commands, which stop the motors. The problem is that there's a small delay between the two and I constantly get 3-5mm errors on the same motor (the one that gets stopped one line later).
Due to the nature of my program, I cannot tell that specific motor to 'do 3-5 mm less'. Is there a way I could speed this up in any way?
def stop_motors():
p1 = Process(target=stop_left());
p2 = Process(target=stop_right());
p1.start();
p2.start();
def stop_left():
MotorLeft.stop(stop_action='hold');
MotorLeft.reset();
def stop_right():
MotorRight.stop(stop_action='hold');
MotorRight.reset();
I tried this, same results.