#pragma once #ifndef _pub_h__ #define _pub_h__ #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 3 #define RSSI_LIMIT #define PI 3.141592653 #define DANCEGAME_MIN_RSSI 26 #define PRESS_MIN 41000 #define GAME_VERSION "0.3.5" 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, // 点击-原地踩 NUMBERS_OF_MOTION, MOTION_CANCEL = 0x0100, }; struct posData { float pos_x; float pos_y; float rssi; }; #endif