96 result =
mmL.SetDCMotorPower(_id, power);
Handling the Lower MCU (STM32) communication.
bool setReverse(bool dir)
Sets the direction of the DC motor.
bool setFixSpeedPID(float kp, float ki, float kd)
Sets the PID parameters for fixed speed control. (For SetSpeed())
bool setPPR_RPM(uint16_t motorPPR, uint16_t motorMaxRPM)
Sets the encoder PPR (Pulses Per Revolution) and maximum RPM for a motor.
bool resetCounter(void)
Resets the encoder counter to zero.
bool setBrake(bool brake)
Sets the brake mode for the DC motor.
bool setSpeed(int16_t speed)
Sets the speed of the DC motor.
bool setPower(int16_t power)
Sets the power level of the DC motor.
int32_t getCounter(void)
Gets the current encoder counter value. (Not Degree)
int32_t getDegrees(void)
Gets the current rotation in degrees based on the encoder count.
bool ChkRotateEnd(bool &isEnd)
Checks if the rotation has ended.
bool rotateFor(int16_t speed, uint16_t degree)
Rotates the DC motor for a specific degree at a given speed.
bool setRotatePID(float kp, float ki, float kd)
Sets the PID parameters for rotation control. (For rotateFor())
bool begin(void)
Initializes the DC motor settings.