process_result.h 725 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _PRECESS_RESULT_H_
  2. #define _PRECESS_RESULT_H_
  3. #include "main.h"
  4. #include <stdio.h>
  5. #include <stdint.h>
  6. #include <stdbool.h>
  7. #include <string.h>
  8. #define GYR_LSB 16.4f
  9. #define ACC_LSB 4096.0f
  10. #define DEX_NUM 0
  11. #define CMD_HEART 0
  12. #define GRAVITY 9.788f
  13. //extern short gyro[3];
  14. //extern short accel[3];
  15. //extern uint16_t s_press;
  16. //extern uint16_t h_press;
  17. //extern int16_t s_gyro[3];
  18. //extern int16_t s_pos[3];
  19. extern void press_minimum_eval(int, int, short, short);
  20. extern short press_down_detect_new(int, int, int);
  21. extern short press_jump_detect(short*, short*);
  22. unsigned char footPDR(int num, float *gyr, float *acc, float *mag ,int press, int16_t* pos_res, int16_t* att, int16_t* zupt);
  23. #endif