pub.h 734 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. #pragma once
  2. #ifndef _pub_h__
  3. #define _pub_h__
  4. #include <iostream>
  5. #include <stdlib.h>
  6. #include <vector>
  7. using namespace std;
  8. #define LEFT_FOOT 1
  9. #define RIGHT_FOOT 2
  10. //#define DANCING_THRESH 5
  11. #define DANCING_THRESH 0
  12. #define CIRCLE_CENTER 22
  13. #define ORIGINTRAJ 0
  14. #define RUNGAME 1
  15. #define DANCEGAME 2
  16. #define RSSI_LIMIT
  17. #define PI 3.141592653
  18. #define DANCEGAME_MIN_RSSI 25
  19. #define GAME_VERSION "0.0.1"
  20. enum _CMD_MOTION {
  21. MOTION_STOP = 0,
  22. MOTION_RUN,
  23. MOTION_JUMP,
  24. MOTION_DOWN,
  25. MOTION_LEFT,
  26. MOTION_RIGHT,
  27. MOTION_FRONT,
  28. MOTION_BACK,
  29. MOTION_LEFT_UP,
  30. MOTION_LEFT_DOWN,
  31. MOTION_RIGHT_UP,
  32. MOTION_RIGHT_DOWN,
  33. MOTION_STEP,
  34. NUMBERS_OF_MOTION,
  35. };
  36. struct posData
  37. {
  38. float pos_x;
  39. float pos_y;
  40. float rssi;
  41. };
  42. #endif