[Change]
增加了模拟开启自动驾驶,方便调试,但需要工控机支持 TODO 下周考虑自己维护状态数据 Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
@@ -203,4 +203,17 @@ class MoGoAutopilotProvider :
|
||||
AdasManager.getInstance().disableDemoMode()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 办公室调试使用,强制开启自动驾驶,将 status,pilotmode,control_pilotmode,强追设置为 1
|
||||
* isEnable = true 开启
|
||||
* isEnable = false 关闭
|
||||
*/
|
||||
override fun setControlAutopilotCarAuto(isEnable: Boolean) {
|
||||
if (isEnable) {
|
||||
AdasManager.getInstance().controlAutopilotCarAuto()
|
||||
} else {
|
||||
AdasManager.getInstance().controlAutopilotCarHead()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user