[dev_arch_opt_3.0]
[Change] [1、拆分汽车底盘数据透出,都采用单个类型数据回调] Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.mogo.eagle.core.function.api.autopilot
|
||||
|
||||
/**
|
||||
* 车辆加速度 数据 回调监听
|
||||
*/
|
||||
interface IMoGoChassisAccStateListener {
|
||||
|
||||
/**
|
||||
* 车辆加速度
|
||||
*/
|
||||
fun onAutopilotAcc(carAcc: Float)
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.mogo.eagle.core.function.api.autopilot
|
||||
|
||||
/**
|
||||
* 刹车 数据 回调监听
|
||||
*/
|
||||
interface IMoGoChassisBrakeStateListener {
|
||||
|
||||
/**
|
||||
* 刹车
|
||||
*/
|
||||
fun onAutopilotBrake(brake: Float)
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.mogo.eagle.core.function.api.autopilot
|
||||
|
||||
import chassis.Chassis
|
||||
|
||||
/**
|
||||
* 车辆挂挡档位 数据 回调监听
|
||||
*/
|
||||
interface IMoGoChassisGearStateListener {
|
||||
|
||||
/**
|
||||
* 车辆挂挡档位
|
||||
* @param gear 档位
|
||||
*/
|
||||
fun onAutopilotGearData(gear: Chassis.GearPosition)
|
||||
|
||||
}
|
||||
@@ -5,9 +5,9 @@ import mogo.telematics.pad.MessagePad
|
||||
/**
|
||||
*@author xiaoyuzhou
|
||||
*@date 2021/11/2 2:06 下午
|
||||
* 车辆状态&定位 数据 数据 回调监听
|
||||
* 车辆定位 数据 数据 回调监听
|
||||
*/
|
||||
interface IMoGoAutopilotCarStateListener {
|
||||
interface IMoGoChassisGnssInfoListener {
|
||||
|
||||
/**
|
||||
* 车辆状态&定位 数据
|
||||
@@ -3,7 +3,7 @@ package com.mogo.eagle.core.function.api.autopilot
|
||||
/**
|
||||
* 车辆方向盘转向角 数据 回调监听
|
||||
*/
|
||||
interface IMoGoSteeringStateListener {
|
||||
interface IMoGoChassisSteeringStateListener {
|
||||
|
||||
/**
|
||||
* 车辆方向盘转向角回调
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.mogo.eagle.core.function.api.autopilot
|
||||
|
||||
/**
|
||||
* 油门 数据 回调监听
|
||||
*/
|
||||
interface IMoGoChassisThrottleStateListener {
|
||||
|
||||
/**
|
||||
* 油门
|
||||
*/
|
||||
fun onAutopilotThrottle(throttle: Float)
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
package com.mogo.eagle.core.function.api.autopilot
|
||||
|
||||
import com.zhidao.support.adas.high.bean.AutopilotAbility
|
||||
import mogo_msg.MogoReportMsg
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user