The robot car has 3 motors, the first motor is a stepper motor which controls the 2 wheels in front of the car to tell which direction it is moving. The second and third motor is a dc motor which each motor controls a wheel of the back of the car. The front wheels right now only have 3 values which will tell the car to either turn left, right, or face front.
The dc motor has PWM values but now we are trying to make sure that the robot is moving straight by using both of the PWM values. The whole robot use STM32F1 to control.
Is there a formula or a way to just tell the angle then the car will auto-move that angle?