#ifndef _PRECESS_RESULT_H_ #define _PRECESS_RESULT_H_ #include "main.h" #include #include #include #include #define GYR_LSB 16.4f #define ACC_LSB 4096.0f #define DEX_NUM 0 #define CMD_HEART 0 #define GRAVITY 9.788f //extern short gyro[3]; //extern short accel[3]; //extern uint16_t s_press; //extern uint16_t h_press; //extern int16_t s_gyro[3]; //extern int16_t s_pos[3]; extern void press_minimum_eval(int, int, short, short); extern short press_down_detect_new(int, int, int); extern short press_jump_detect(short*, short*); unsigned char footPDR(int num, float *gyr, float *acc, float *mag ,int press, int16_t* pos_res, int16_t* att, int16_t* zupt); #endif