2 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
4 * Licensed under the Flora License, Version 1.1 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
21 * @brief Types of commands used in communication.
23 typedef enum command_type {
24 COMMAND_TYPE_NONE, /** Command doesn't carry any information */
25 COMMAND_TYPE_DRIVE, /** Command carries information about steering included in data.steering. */
26 COMMAND_TYPE_CAMERA /** Command carries information about camera position in data.camera_position. */
30 * @brief Structure with info about speed and direction that should be set.
32 typedef struct __command {
33 command_type_e type; /** Type of command. */
36 int speed; /** Speed to be set from range [-10000, 10000]. */
37 int direction; /** Direction to be set from range [-10000, 10000]. */
40 int camera_elevation; /** Elevation of camera to be set from range [-10000, 10000]. */
41 int camera_azimuth; /** Azimuth of camera to be set from range [-10000, 10000]. */