1
0
forked from EN/Car
Car/Core/Inc/motor.h

16 lines
230 B
C
Raw Normal View History

2024-07-11 18:07:41 +08:00
#ifndef __MOTOR_H
#define __MOTOR_H
// <20><><EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD>ת<EFBFBD><D7AA>
#include "main.h"
// duty in [-100, 100]
void MOTOR_Start(void);
void MOTOR_Slip(void);
void MOTOR_Stop(void);
void MOTOR_SetDuty(int8_t leftDuty, int8_t rightDuty);
#endif