下沉数据项

Signed-off-by: 董宏宇 <martindhy@gmail.com>
This commit is contained in:
董宏宇
2021-09-23 19:07:35 +08:00
committed by liujing
parent e2915fbf67
commit 530bd9f6bd
3 changed files with 18 additions and 19 deletions

View File

@@ -0,0 +1,76 @@
package com.mogo.eagle.core.data.traffic
import com.mogo.eagle.core.data.enums.TrafficTypeEnum
/**
* @author xiaoyuzhou
* @date 2021/8/17 8:41 下午
* 交通元素数据,
*/
class TrafficData {
/**
* 交通元素类型, 车、人、摩托、大巴车、卡车、自行车
*/
var type: TrafficTypeEnum = TrafficTypeEnum.TYPE_TRAFFIC_ID_WEI_ZHI
/**
* 识别物体唯一标识
*/
var uuid: String = ""
/**
* 识别物体的纬度
*/
var lat = 0.0
/**
* 识别物体的经度
*/
var lon = 0.0
/**
* 车头朝向
*/
var heading = 0.0
/**
* 系统时间
*/
var systemTime: Long = 0
/**
* 定位卫星时间
*/
var satelliteTime: Long = 0
/**
* 海拔
*/
var alt = 0.0
/**
* 速度
*/
var speed = 0.0
/**
* 莫顿码
*/
var mortonCode: Long = 0
/**
* 实际距离
* 使用distanceX和distanceY计算
*/
var distance = 0.0
/**
* 危险等级
* range(0..3)
* 0x00: 保留
* 0x01: 模型原始颜色
* 0x02: 通知 -- 黄
* 0x03: 警告 -- 红
*/
var threatLevel = 0
}