modify brake

This commit is contained in:
lixiaopeng
2022-03-28 15:12:51 +08:00
parent be10bd216a
commit 3ed423938d
5 changed files with 47 additions and 15 deletions

View File

@@ -77,5 +77,16 @@ object CallerAutopilotVehicleStateListenerManager : CallerBase() {
}
}
/**
* 车辆刹车根据加速度判断
*/
@Synchronized
fun invokeAutopilotBrakeLightByAcceleration(accrleration: Double) {
M_AUTOPILOT_VEHICLE_LISTENERS.forEach {
val listener = it.value
listener.onAutopilotBrakeLightByAcceleration(accrleration)
}
}
}