[6.5.0][视角切换] 优化视角切换逻辑2
This commit is contained in:
@@ -44,7 +44,7 @@ class MoGoVisualAngleChangeProvider: IMoGoVisualAngleChangeProvider {
|
||||
private var inCrossRoad = false
|
||||
@Volatile
|
||||
private var hasCrossRoad = false
|
||||
private val distanceOfCarToStopLine = AtomicReference(0.0)
|
||||
private val distanceOfCarToStopLine = AtomicReference(-1.0)
|
||||
private val triggerLocation = AtomicReference<MogoLocation>()
|
||||
private val travelled by lazy { AtomicReference(0.0) }
|
||||
|
||||
@@ -80,7 +80,7 @@ class MoGoVisualAngleChangeProvider: IMoGoVisualAngleChangeProvider {
|
||||
if (triggerClose) {
|
||||
try {
|
||||
Log.d(TAG, "-- onRoadIdInfo --: trigger close --")
|
||||
distanceOfCarToStopLine.set(0.0)
|
||||
distanceOfCarToStopLine.set(-1.0)
|
||||
hasCrossRoad = false
|
||||
triggerRoadId.set(null)
|
||||
travelled.set(0.0)
|
||||
|
||||
Reference in New Issue
Block a user