detect_zero_vel.h 364 B

12345678910111213141516
  1. #ifndef __detect_zero_vel_h__
  2. #define __detect_zero_vel_h__
  3. #define WINDOW_SIZE 15
  4. #define FRONT_MAG 1
  5. #define BACK_MAG 2
  6. #include "main.h"
  7. void detect_zero_vel(int16_t front[3], int16_t back[3], int16_t acc[3],
  8. int16_t *front_zero, int16_t *back_zero, int16_t *acc_zero);
  9. void start_cal_step(int16_t front[3], int16_t back[3], int16_t acc[3]);
  10. #endif