detect_step_by_mag.h 408 B

12345678910111213141516171819
  1. #ifndef __DETECT_STEP_BY_MAG_H__
  2. #define __DETECT_STEP_BY_MAG_H__
  3. #include <stdbool.h>
  4. #include <stdint.h>
  5. #include <string.h>
  6. #include "sdk_common.h"
  7. #include "SEGGER_RTT.h"
  8. #include "usr_config.h"
  9. #include "nrf_gpio.h"
  10. //uint8_t detect_step_by_mag(int16_t *mag);
  11. uint8_t detect_step_by_mag(int16_t *mag, int16_t acc_z);
  12. uint8_t RealTimeStep(int16_t front[3], int16_t back[3], int16_t acc[3]);
  13. #endif