12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #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 RSSI_LIMIT
- #define PI 3.141592653
- #define DANCEGAME_MIN_RSSI 25
- #define GAME_VERSION "0.0.1"
- 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,
- };
- struct posData
- {
- float pos_x;
- float pos_y;
- float rssi;
- };
- #endif
|