123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #pragma once
- #ifndef _pub_h__
- #define _pub_h__
- #include <iostream>
- #include <math.h>
- #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 MONSTER 4
- #define RSSI_LIMIT
- #define PI 3.141592653
- #define DANCEGAME_MIN_RSSI 26
- #define PRESS_MIN 41000
- #define GAME_VERSION "0.3.10"
- 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,
- };
- 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;
- };
- #endif
|