You don't really mean speed control, the other thread says you are keeping the motors in synch, so your error
variable is a position difference, not a speed difference. 2 wheeled robot?
You don't really mean speed control, the other thread says you are keeping the motors in synch, so your error
variable is a position difference, not a speed difference. 2 wheeled robot?