footPDR.h 537 B

12345678910111213141516171819202122232425262728
  1. #ifndef __foot_pdr_h__
  2. #define __foot_pdr_h__
  3. #include "main.h"
  4. #include "ekfPDR.h"
  5. #include "matrixOperations.h"
  6. #include "motion_config.h"
  7. #include "nrf_nvmc.h"
  8. #define FLASH_ADD 0x0007c000
  9. #define ZUPT_threshold 0.81
  10. #define PI 3.14159265f
  11. #define RUN 1
  12. #define STAND 0
  13. unsigned char footPDR(uint32_t num, float *gyr, float *acc, uint16_t front_mag_norm, int16_t zupt, int16_t acc_zero, int32_t* pos_res, int16_t* att);
  14. void quat2angle(float qin[4], float *roll, float *pitch, float *yaw);
  15. float getVelMean(void);
  16. #endif