123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #pragma once
- #ifndef _pub_h__
- #define _pub_h__
- #include <iostream>
- #include <stdlib.h>
- #include <vector>
- 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
|