#ifndef __press_down_detect_h__ #define __press_down_detect_h__ #include "main.h" extern void gpio_mt_run(uint32_t tim); #define PRESS_LEGTH 15 #define DETECT_DOWN_SIZE 2 #define PRESS_COUNT_MAX 5 #define TIME_INTERVAL 10 #if GIRL_SHOES == 1 #define PRESS_INTER 150000 #else #define PRESS_INTER 250000 #endif //#define LEFT_PRESS_LOW 10400000 //#define RIGHT_PRESS_LOW 10050000 #define LEFT_PRESS_LOW 9860000 #define RIGHT_PRESS_LOW 10570000 //short press_jump_detect(int16_t *h_pos, int16_t *s_pos); //short press_jump_detect(float left_acc_z, float right_acc_z, int left_zupt, int right_zupt, // float left_front_press, float right_front_press, float left_back_press, float right_back_press); short press_jump_detect(float left_acc_z, float right_acc_z, int left_zupt, int right_zupt, int left_front_press, int right_front_press); int att_jump_detect(float left_pitch, float right_pitch, int left_zupt, int right_zupt); int press_down_detect_new(int index, float front_mag_left, float back_mag_left, float front_mag_right, float back_mag_right,int left_zupt, int right_zupt, float left_acc_x,float left_acc_y, float left_acc_z, float right_acc_x, float right_acc_y, float right_acc_z, int *front_down, int *back_down); short pos_jump_detect(int *h_pos, int *s_pos, int left_zupt, int right_zupt); #endif