You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
Java
45 lines
1.2 KiB
Java
package com.uns.maincar.constants;
|
|
|
|
/**
|
|
* Created by Guo on 2016/10/27.
|
|
* Modified by UnknownObject at 2022-09-18
|
|
*/
|
|
|
|
public class Flags
|
|
{
|
|
|
|
//日志TAG
|
|
public static final String CLIENT_TAG = "MAIN-CAR-CLIENT";
|
|
|
|
//摄像头控制指令
|
|
public static final int CAMERA_UP = 0;
|
|
public static final int CAMERA_DOWN = 2;
|
|
public static final int CAMERA_LEFT = 4;
|
|
public static final int CAMERA_RIGHT = 6;
|
|
|
|
//主/从车移动控制指令
|
|
public static final byte CMD_PACKET_MAIN_CAR = (byte) 0xAA;
|
|
public static final byte CMD_PACKET_SUB_CAR = (byte) 0x02;
|
|
public static final byte CMD_PACKET_MOVE_FORWARD = (byte) 0x02;
|
|
public static final byte CMD_PACKET_MOVE_BACKWARD = (byte) 0x03;
|
|
public static final byte CMD_PACKET_MOVE_LEFT = (byte) 0x04;
|
|
public static final byte CMD_PACKET_MOVE_RIGHT = (byte) 0x05;
|
|
public static final byte CMD_PACKET_MOVE_STOP = (byte) 0x01;
|
|
public static final byte CMD_PACKET_MOVE_TO_LINE = (byte) 0x06;
|
|
|
|
//recvHandler指令
|
|
public static final int RECEIVED_IMAGE = 11;
|
|
public static final int RECEIVED_CAR_DATA = 12;
|
|
public static final int PRINT_DATA_ARRAY = 13;
|
|
public static final int PRINT_SYSTEM_LOG = 14;
|
|
|
|
//交通灯颜色定义
|
|
public enum TrafficLightColors
|
|
{
|
|
RED,
|
|
YELLOW,
|
|
GREEN,
|
|
NULL
|
|
}
|
|
}
|