1234567891011121314151617181920212223242526272829303132333435 |
- #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 15
- #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(short*, short*);
- short press_jump_detect(float left_acc_z, float right_acc_z);
- int press_down_detect_new(int index, uint16_t left_press, uint16_t right_press, float left_acc_z, float right_acc_z, float pitch_left, float pitch_right);
- #endif
|