Motor Folder
components/driving_board/motor
All of the motor functions in this folder are called in Main
BLDC Motors:
They are used to control the speed of the rover.
bldc.c contains:
The set_bldc_pwm() method. This methods scales the control signal value calculated from control code and adjust the pwm duty cycle outputted by the STM32 accordingly.
Stepper Motors:
stepper.c contains:
The set_stepper_pwm() method. This methods scales the control signal value calculated from control code and adjust the pwm frequency outputted by the STM32 accordingly.
Encoders:
read_encoder.c contains:
The read encoders() method. This method reads encoder values of encoder angle, voltage generated and rpm.