footPDR.h 548 B

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