刹车 油门视图呈现,无优先级,谁有返回值替换成谁

This commit is contained in:
liujing
2022-07-27 14:57:29 +08:00
parent 6717ca1c33
commit e21a4953ba
6 changed files with 60 additions and 1 deletions

View File

@@ -71,6 +71,16 @@ internal class CanImpl(ctx: Context): IFlow<CanStatus>(ctx), IMoGoAutopilotVehic
timeOutCheck()
}
override fun onAutopilotThrottle(throttle: Float) {
send(CanStatus(isCanEnabled()))
timeOutCheck()
}
override fun onAutopilotBrake(brake: Float) {
send(CanStatus(isCanEnabled()))
timeOutCheck()
}
override fun onAutopilotGuardian(guardianInfo: MogoReportMessage?) {
super.onAutopilotGuardian(guardianInfo)
send(CanStatus(isCanEnabled()))