No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

definitions.h 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. /*
  7. * File: msg.h
  8. * Author: pehladik
  9. *
  10. * Created on 15 janvier 2018, 20:45
  11. */
  12. #ifndef DEFINITIONS_H
  13. #define DEFINITIONS_H
  14. #define OPEN_COM_DMB 'o'
  15. #define CLOSE_COM_DMB 'C'
  16. #define DMB_PING 'p'
  17. #define DMB_IDLE 'r'
  18. #define DMB_START_WITHOUT_WD 'u'
  19. #define DMB_START_WITH_WD 'W'
  20. #define DMB_RELOAD_WD 'w'
  21. #define DMB_GET_VBAT 'v'
  22. #define DMB_IS_BUSY 'b'
  23. #define DMB_MOVE 'M'
  24. #define DMB_TURN 'T'
  25. #define DMB_GO_FORWARD 'F'
  26. #define DMB_GO_BACK 'B'
  27. #define DMB_GO_LEFT 'L'
  28. #define DMB_GO_RIGHT 'R'
  29. #define DMB_STOP_MOVE 'S'
  30. #define ROBOT_TIMED_OUT -3
  31. #define ROBOT_UKNOWN_CMD -2
  32. #define ROBOT_ERROR -1
  33. #define ROBOT_CHECKSUM -4
  34. #define ROBOT_OK 0
  35. #define CAM_OPEN 'A'
  36. #define CAM_CLOSE 'I'
  37. #define CAM_ASK_ARENA 'y'
  38. #define CAM_ARENA_CONFIRM 'x'
  39. #define CAM_ARENA_INFIRM 'z'
  40. #define CAM_COMPUTE_POSITION 'p'
  41. #define CAM_STOP_COMPUTE_POSITION 's'
  42. #define DMB_BAT_LOW 0
  43. #define DMB_BAT_MEDIUM 1
  44. #define DMB_BAT_HIGHT 2
  45. #define DMB_BUSY 1
  46. #define DMB_DO_NOTHING 0
  47. #endif /* MSG_H */