2018-08-27 16:39:49 +02:00
|
|
|
/*
|
2018-11-13 15:48:02 +01:00
|
|
|
* Copyright (C) 2018 dimercur
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2018-08-27 16:39:49 +02:00
|
|
|
*/
|
|
|
|
|
2018-11-13 15:48:02 +01:00
|
|
|
/**
|
|
|
|
* \file definitions.h
|
|
|
|
* \author PE.Hladik
|
|
|
|
* \version 1.0
|
|
|
|
* \date 06/06/2017
|
|
|
|
* \brief Various constants used in destjil project
|
2018-08-27 16:39:49 +02:00
|
|
|
*/
|
|
|
|
|
2018-11-13 15:48:02 +01:00
|
|
|
|
2018-08-27 16:39:49 +02:00
|
|
|
#ifndef DEFINITIONS_H
|
|
|
|
#define DEFINITIONS_H
|
|
|
|
|
2018-11-13 15:48:02 +01:00
|
|
|
#define OPEN_COM_DMB 'o'
|
|
|
|
#define CLOSE_COM_DMB 'C'
|
2018-10-19 10:53:20 +02:00
|
|
|
|
|
|
|
#define DMB_PING 'p'
|
|
|
|
#define DMB_IDLE 'r'
|
|
|
|
#define DMB_START_WITHOUT_WD 'u'
|
|
|
|
#define DMB_START_WITH_WD 'W'
|
|
|
|
#define DMB_RELOAD_WD 'w'
|
|
|
|
#define DMB_GET_VBAT 'v'
|
|
|
|
#define DMB_IS_BUSY 'b'
|
|
|
|
#define DMB_MOVE 'M'
|
|
|
|
#define DMB_TURN 'T'
|
|
|
|
#define DMB_GO_FORWARD 'F'
|
|
|
|
#define DMB_GO_BACK 'B'
|
|
|
|
#define DMB_GO_LEFT 'L'
|
|
|
|
#define DMB_GO_RIGHT 'R'
|
|
|
|
#define DMB_STOP_MOVE 'S'
|
|
|
|
|
2018-11-13 15:48:02 +01:00
|
|
|
#define ROBOT_TIMED_OUT -3
|
|
|
|
#define ROBOT_UKNOWN_CMD -2
|
|
|
|
#define ROBOT_ERROR -1
|
|
|
|
#define ROBOT_CHECKSUM -4
|
|
|
|
#define ROBOT_OK 0
|
2018-10-19 10:53:20 +02:00
|
|
|
|
2018-08-27 16:39:49 +02:00
|
|
|
#define CAM_OPEN 'A'
|
|
|
|
#define CAM_CLOSE 'I'
|
|
|
|
#define CAM_ASK_ARENA 'y'
|
|
|
|
#define CAM_ARENA_CONFIRM 'x'
|
|
|
|
#define CAM_ARENA_INFIRM 'z'
|
|
|
|
#define CAM_COMPUTE_POSITION 'p'
|
|
|
|
#define CAM_STOP_COMPUTE_POSITION 's'
|
|
|
|
|
2018-11-13 15:48:02 +01:00
|
|
|
#define DMB_BAT_LOW 0
|
|
|
|
#define DMB_BAT_MEDIUM 1
|
|
|
|
#define DMB_BAT_HIGH 2
|
2018-08-27 16:39:49 +02:00
|
|
|
|
2018-11-13 15:48:02 +01:00
|
|
|
#define DMB_BUSY 1
|
|
|
|
#define DMB_DO_NOTHING 0
|
2018-08-27 16:39:49 +02:00
|
|
|
|
|
|
|
#endif /* MSG_H */
|
|
|
|
|