[dev_arch_opt_3.0]
[Change] [ 1、拆分Obu数据回调接口,等待凤坤pb提交后在统一数据调用 ] Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package com.mogo.eagle.core.function.api.map.listener
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLocation
|
||||
|
||||
/**
|
||||
* 封装高德地图通过设备GPS获取到的位置信息,频率1s一次,坐标系为CJC20
|
||||
* 这里的数据仅用于非高精度业务
|
||||
* @author xiaoyuzhou
|
||||
* @date 2021/11/1 7:17 下午
|
||||
*/
|
||||
interface IGaoDeMapLocationListener {
|
||||
/**
|
||||
* 定位发生改变
|
||||
*
|
||||
* @param location 新定位点
|
||||
*/
|
||||
fun onLocationChanged(location: MogoLocation, from: Int, isGps: Boolean)
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package com.mogo.eagle.core.function.api.map.listener
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLocation
|
||||
|
||||
/**
|
||||
* @author xiaoyuzhou
|
||||
* @date 2021/11/1 7:17 下午
|
||||
* 地图定位回调
|
||||
*/
|
||||
interface IMoGoMapLocationListener {
|
||||
/**
|
||||
* 定位发生改变
|
||||
*
|
||||
* @param location 新定位点
|
||||
*/
|
||||
fun onLocationChanged(location: MogoLocation?, from: Int, isGps: Boolean)
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.mogo.eagle.core.function.api.obu
|
||||
|
||||
import com.mogo.eagle.core.data.obu.ObuStatusInfo
|
||||
|
||||
/**
|
||||
* OBU 连接状态监听回调
|
||||
* @author xiaoyuzhou
|
||||
* @date 2021/9/30 5:53 下午
|
||||
*/
|
||||
interface IMoGoObuConnectListener {
|
||||
|
||||
/**
|
||||
* 检查OBU连链接信息
|
||||
* @param obuStatusInfo OBU 状态信息
|
||||
*/
|
||||
fun onConnectStatus(obuStatusInfo: ObuStatusInfo)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mogo.eagle.core.function.api.obu
|
||||
|
||||
import com.mogo.support.obu.model.MogoObuHvBasicsData
|
||||
|
||||
/**
|
||||
* OBU HV 自车车辆基础信息数据,自车定位数据 WGS84 坐标系
|
||||
* @author donghongyu
|
||||
* @date 2023-02-01
|
||||
*/
|
||||
interface IMoGoObuLocationWGS84Listener {
|
||||
|
||||
/**
|
||||
* HV车辆基础信息
|
||||
*
|
||||
* @param data 数据
|
||||
* @since 1.0.0
|
||||
*/
|
||||
fun onObuLocationWGS84(data: MogoObuHvBasicsData)
|
||||
|
||||
}
|
||||
@@ -9,13 +9,6 @@ import com.mogo.eagle.core.data.traffic.TrafficData
|
||||
* OBU 状态监听回调
|
||||
*/
|
||||
interface IMoGoObuStatusListener {
|
||||
/**
|
||||
* 检查OBU连链接信息
|
||||
* @param obuStatusInfo OBU 状态信息
|
||||
*/
|
||||
fun onObuStatusResponse(obuStatusInfo: ObuStatusInfo){
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* v2i时延
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
package com.mogo.eagle.core.function.api.obu
|
||||
|
||||
|
||||
/**
|
||||
* OBU 灯态信息
|
||||
* @author lixiaopeng
|
||||
* @date 2022/1/30 10:28 下午
|
||||
* OBU 灯态信息
|
||||
*/
|
||||
interface IMoGoObuTrafficLightListener {
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mogo.eagle.core.function.api.obu
|
||||
|
||||
import com.mogo.support.obu.model.MogoObuMapMathData
|
||||
|
||||
/**
|
||||
* OBU 地图匹配结果,
|
||||
* @author donghongyu
|
||||
* @date 2023-02-01
|
||||
*/
|
||||
interface IMoGoObuWarningMapListener {
|
||||
|
||||
/**
|
||||
* 地图匹配结果
|
||||
*
|
||||
* @param data 数据
|
||||
* @since 1.0.0
|
||||
*/
|
||||
fun onMoGoObuMapMath(data: MogoObuMapMathData)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mogo.eagle.core.function.api.obu
|
||||
|
||||
import com.mogo.support.obu.model.MogoObuRsiWarningData
|
||||
|
||||
/**
|
||||
* OBU RSI预警信息,
|
||||
* @author donghongyu
|
||||
* @date 2023-02-01
|
||||
*/
|
||||
interface IMoGoObuWarningRsiListener {
|
||||
|
||||
/**
|
||||
* RSI预警信息
|
||||
*
|
||||
* @param data 数据
|
||||
* @since 1.0.0
|
||||
*/
|
||||
fun onMoGoObuRsiWarning(data: MogoObuRsiWarningData)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mogo.eagle.core.function.api.obu
|
||||
|
||||
import com.mogo.support.obu.model.MogoObuRsmWarningData
|
||||
|
||||
/**
|
||||
* OBU RSM预警信息,弱势交通参与者预警信息
|
||||
* @author donghongyu
|
||||
* @date 2023-02-01
|
||||
*/
|
||||
interface IMoGoObuWarningRsmListener {
|
||||
|
||||
/**
|
||||
* RSM预警信息,弱势交通参与者预警信息
|
||||
*
|
||||
* @param data 数据
|
||||
* @since 1.0.0
|
||||
*/
|
||||
fun onMoGoObuRsmWarning(data: MogoObuRsmWarningData)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mogo.eagle.core.function.api.obu
|
||||
|
||||
import com.mogo.support.obu.model.MogoObuRvWarningData
|
||||
|
||||
/**
|
||||
* OBU V2V预警信息,
|
||||
* @author donghongyu
|
||||
* @date 2023-02-01
|
||||
*/
|
||||
interface IMoGoObuWarningRvListener {
|
||||
|
||||
/**
|
||||
* OBU V2V预警信息
|
||||
*
|
||||
* @param data 数据
|
||||
* @since 1.0.0
|
||||
*/
|
||||
fun onMoGoObuRvWarning(data: MogoObuRvWarningData)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mogo.eagle.core.function.api.obu
|
||||
|
||||
import com.mogo.support.obu.model.MogoObuSpatWarningData
|
||||
|
||||
/**
|
||||
* OBU 红绿灯预警信息,
|
||||
* @author donghongyu
|
||||
* @date 2023-02-01
|
||||
*/
|
||||
interface IMoGoObuWarningSpatListener {
|
||||
|
||||
/**
|
||||
* OBU 红绿灯预警信息
|
||||
*
|
||||
* @param data 数据
|
||||
* @since 1.0.0
|
||||
*/
|
||||
fun onMoGoObuSpatWarning(data: MogoObuSpatWarningData)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user