调试面板

控制中心增加车辆状态模块,目前会展示方向盘转向角和档位信息
This commit is contained in:
xuxinchao
2022-04-01 17:29:06 +08:00
parent 0d245e2210
commit 0d8ecec882
6 changed files with 162 additions and 4 deletions

View File

@@ -77,5 +77,29 @@ object CallerAutopilotVehicleStateListenerManager : CallerBase() {
}
}
/**
* 车辆方向盘转向角回调
* @param steering 方向盘转向角
*/
@Synchronized
fun invokeAutopilotSteeringData(steering: Float){
M_AUTOPILOT_VEHICLE_LISTENERS.forEach{
val listener = it.value
listener.onAutopilotSteeringData(steering)
}
}
/**
* 车辆挂挡档位
* @param gear 档位
*/
@Synchronized
fun invokeAutopilotGearData(gear: Chassis.GearPosition){
M_AUTOPILOT_VEHICLE_LISTENERS.forEach{
val listener = it.value
listener.onAutopilotGearData(gear)
}
}
}