M12-04P/app/user/MotorCtrl.h

30 lines
543 B
C
Raw Permalink Normal View History

2024-01-09 15:50:14 +08:00
#ifndef __MOTORCTRL_H__
#define __MOTORCTRL_H__
#include "r_cg_macrodriver.h"
#define MOTOR1 0
#define MOTOR2 1
#define MOTOR3 2
#define MOTOR4 3
#define MOTOR5 4
#define MOTOR6 5
void OverCurrentPro(uint8_t ovmotor);
void CurrentDetecte(void);
void MotorCtrl(void);
void HallDetecte(void);
void MotorValueInit(void);
uint16_t getMotorLoc(void);
void StartAutoCal(void);
void StopAutoCal(void);
void setMotorState(uint8_t motorid,uint8_t act);
2024-01-10 16:48:16 +08:00
void setMotorAutoXQ(void);
void setMotorAutoXH(void);
2024-01-09 15:50:14 +08:00
#endif