#pragma once #ifndef _pub_h__ #define _pub_h__ #include #include #include #include #include using namespace std; #define LEFT_FOOT 1 #define RIGHT_FOOT 2 //#define DANCING_THRESH 5 #define DANCING_THRESH 0 #define CIRCLE_CENTER 22 #define ORIGINTRAJ 0 #define RUNGAME 1 #define DANCEGAME 2 #define H5GAME 8 #define MONSTER 4 #define RUINS 5 #define CYCLE 6 #define BIGFOOT 7 #define TESTGAME 100 #define RSSI_LIMIT #define PI 3.141592653 #define DANCEGAME_MIN_RSSI 26 #define PRESS_MIN 41000 #define GAME_VERSION "0.3.66" enum CMD_MOTION { MOTION_STOP = 0, MOTION_RUN, // 跑 MOTION_JUMP, // 跳 MOTION_DOWN, // 蹲 MOTION_LEFT, // 滑左 MOTION_RIGHT, // 滑右 MOTION_FRONT, // 滑前 MOTION_BACK, // 滑后 MOTION_LEFT_UP, // 点击-左上 MOTION_LEFT_DOWN, // 点击-左下 MOTION_RIGHT_UP, // 点击-右上 MOTION_RIGHT_DOWN, // 点击-右下 MOTION_STEP, // 点击-原地踩 MOTION_JUMP_OC, // 开合跳 MOTION_JUMP_VERTICAL, // 垂直跳 NUMBERS_OF_MOTION, MOTION_CANCEL = 0x0100, }; enum CMD_INTERATION { NONE_INTERATION = 0, FRONT_LEFT,//左上键 FRONT_RIGHT,//右上键 BACK_LEFT,//左下键 BACK_RIGHT,//右下键 ENTER_KEY,//确认键 CANCLE_KEY,//取消键 }; struct posData { float pos_x; float pos_y; float rssi; }; struct FootActionState { int FootState; int StateCount; uint32_t Triggering_time; }; #endif