motor: Add calibration and selftest

Signed-off-by: xueyanhong <xueyanhong@xiaomi.com>
This commit is contained in:
xueyanhong 2021-11-18 19:13:06 +08:00 committed by Petro Karashchenko
parent b88160084e
commit be90b8a385

View File

@ -50,5 +50,8 @@
#define MTRIOC_SET_FAULT _MTRIOC(10) #define MTRIOC_SET_FAULT _MTRIOC(10)
#define MTRIOC_GET_FAULT _MTRIOC(11) #define MTRIOC_GET_FAULT _MTRIOC(11)
#define MTRIOC_PWM_OFF _MTRIOC(12) #define MTRIOC_PWM_OFF _MTRIOC(12)
#define MTRIOC_CALIBRATE _MTRIOC(13)
#define MTRIOC_SELFTEST _MTRIOC(14)
#define MTRIOC_SET_CALIBDATA _MTRIOC(15)
#endif /* __INCLUDE_NUTTX_MOTOR_MOTOR_IOCTL_H */ #endif /* __INCLUDE_NUTTX_MOTOR_MOTOR_IOCTL_H */