油门刹车数据获取供bus使用

This commit is contained in:
liujing
2022-07-27 11:47:02 +08:00
parent bfe95019a4
commit 6717ca1c33
4 changed files with 43 additions and 1 deletions

View File

@@ -112,6 +112,26 @@ object CallerAutopilotVehicleStateListenerManager : CallerBase() {
}
}
/**
* throttle 油门
*/
fun invokeAutopilotThrottle(throttle: Float){
M_AUTOPILOT_VEHICLE_LISTENERS.forEach{
val listener = it.value
listener.onAutopilotThrottle(throttle)
}
}
/**
* brake 刹车
*/
fun invokeAutopilotBrake(brake: Float){
M_AUTOPILOT_VEHICLE_LISTENERS.forEach{
val listener = it.value
listener.onAutopilotBrake(brake)
}
}
/**
* 工控机时间回调