16 lines
230 B
C
16 lines
230 B
C
|
#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
|