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 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright (C) 2018 dimercur
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. /**
  18. * \file definitions.h
  19. * \author PE.Hladik
  20. * \version 1.0
  21. * \date 06/06/2017
  22. * \brief Various constants used in destjil project
  23. */
  24. #ifndef DEFINITIONS_H
  25. #define DEFINITIONS_H
  26. #define OPEN_COM_DMB 'o'
  27. #define CLOSE_COM_DMB 'C'
  28. #define DMB_PING 'p'
  29. #define DMB_IDLE 'r'
  30. #define DMB_START_WITHOUT_WD 'u'
  31. #define DMB_START_WITH_WD 'W'
  32. #define DMB_RELOAD_WD 'w'
  33. #define DMB_GET_VBAT 'v'
  34. #define DMB_IS_BUSY 'b'
  35. #define DMB_MOVE 'M'
  36. #define DMB_TURN 'T'
  37. #define DMB_GO_FORWARD 'F'
  38. #define DMB_GO_BACK 'B'
  39. #define DMB_GO_LEFT 'L'
  40. #define DMB_GO_RIGHT 'R'
  41. #define DMB_STOP_MOVE 'S'
  42. #define ROBOT_TIMED_OUT -3
  43. #define ROBOT_UKNOWN_CMD -2
  44. #define ROBOT_ERROR -1
  45. #define ROBOT_CHECKSUM -4
  46. #define ROBOT_OK 0
  47. #define CAM_OPEN 'A'
  48. #define CAM_CLOSE 'I'
  49. #define CAM_ASK_ARENA 'y'
  50. #define CAM_ARENA_CONFIRM 'x'
  51. #define CAM_ARENA_INFIRM 'z'
  52. #define CAM_COMPUTE_POSITION 'p'
  53. #define CAM_STOP_COMPUTE_POSITION 's'
  54. #define DMB_BAT_LOW 0
  55. #define DMB_BAT_MEDIUM 1
  56. #define DMB_BAT_HIGH 2
  57. #define DMB_BUSY 1
  58. #define DMB_DO_NOTHING 0
  59. #endif /* MSG_H */