[dev_arch_opt_3.0]

[Change]
[1、拆分汽车底盘数据透出,都采用单个类型数据回调]

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2023-01-05 21:21:02 +08:00
parent 22198c92ec
commit 723540b9a4
26 changed files with 333 additions and 325 deletions

View File

@@ -1,43 +1,14 @@
package com.mogo.eagle.core.function.api.autopilot
import chassis.Chassis
/**
* 车辆底盘 数据 回调监听
*/
interface IMoGoAutopilotVehicleStateListener {
/**
* 车辆方向盘转向角回调
* @param steering 方向盘转向角
*/
fun onAutopilotSteeringData(steering: Float)
/**
* 车辆挂挡档位
* @param gear 档位
*/
fun onAutopilotGearData(gear: Chassis.GearPosition)
/**
* 没有自车状态数据
*/
fun onAutopilotDataException(timestamp: Long){}
/**
* 车辆加速度
*/
fun onAutopilotAcc(carAcc: Float)
/**
* 油门
*/
fun onAutopilotThrottle(throttle: Float)
/**
* 刹车
*/
fun onAutopilotBrake(brake: Float)
}

View File

@@ -0,0 +1,13 @@
package com.mogo.eagle.core.function.api.autopilot
/**
* 车辆加速度 数据 回调监听
*/
interface IMoGoChassisAccStateListener {
/**
* 车辆加速度
*/
fun onAutopilotAcc(carAcc: Float)
}

View File

@@ -0,0 +1,12 @@
package com.mogo.eagle.core.function.api.autopilot
/**
* 刹车 数据 回调监听
*/
interface IMoGoChassisBrakeStateListener {
/**
* 刹车
*/
fun onAutopilotBrake(brake: Float)
}

View File

@@ -0,0 +1,16 @@
package com.mogo.eagle.core.function.api.autopilot
import chassis.Chassis
/**
* 车辆挂挡档位 数据 回调监听
*/
interface IMoGoChassisGearStateListener {
/**
* 车辆挂挡档位
* @param gear 档位
*/
fun onAutopilotGearData(gear: Chassis.GearPosition)
}

View File

@@ -5,9 +5,9 @@ import mogo.telematics.pad.MessagePad
/**
*@author xiaoyuzhou
*@date 2021/11/2 2:06 下午
* 车辆状态&定位 数据 数据 回调监听
* 车辆定位 数据 数据 回调监听
*/
interface IMoGoAutopilotCarStateListener {
interface IMoGoChassisGnssInfoListener {
/**
* 车辆状态&定位 数据

View File

@@ -3,7 +3,7 @@ package com.mogo.eagle.core.function.api.autopilot
/**
* 车辆方向盘转向角 数据 回调监听
*/
interface IMoGoSteeringStateListener {
interface IMoGoChassisSteeringStateListener {
/**
* 车辆方向盘转向角回调

View File

@@ -0,0 +1,12 @@
package com.mogo.eagle.core.function.api.autopilot
/**
* 油门 数据 回调监听
*/
interface IMoGoChassisThrottleStateListener {
/**
* 油门
*/
fun onAutopilotThrottle(throttle: Float)
}

View File

@@ -1,6 +1,5 @@
package com.mogo.eagle.core.function.api.autopilot
import com.zhidao.support.adas.high.bean.AutopilotAbility
import mogo_msg.MogoReportMsg