[3.2.0] charter 类魔方功能增加日志
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
package com.mogo.och.common.module.manager
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger.d
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager.sendOperatorSetAcceleratedSpeed
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager.sendOperatorSetHorn
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant
|
||||
import java.util.*
|
||||
|
||||
|
||||
@@ -33,6 +34,7 @@ class DriverMoFangFunctionManager private constructor() {
|
||||
timerAcc = Timer()
|
||||
timerAcc!!.schedule(object : TimerTask() {
|
||||
override fun run() {
|
||||
d(SceneConstant.M_CHARTER_D + TAG,"sendOperatorSetAcceleratedSpeed $isSend $acc")
|
||||
sendOperatorSetAcceleratedSpeed(acc)
|
||||
}
|
||||
}, 0, 500)
|
||||
@@ -42,11 +44,13 @@ class DriverMoFangFunctionManager private constructor() {
|
||||
timerAcc!!.cancel()
|
||||
timerAcc = null
|
||||
}
|
||||
d(SceneConstant.M_CHARTER_D + TAG,"sendOperatorSetAcceleratedSpeed $isSend $acc")
|
||||
sendOperatorSetAcceleratedSpeed(acc)
|
||||
}
|
||||
}
|
||||
|
||||
fun reset(){
|
||||
d(SceneConstant.M_CHARTER_D + TAG,"sendAcc false 0.0")
|
||||
sendAcc(false,0.0)
|
||||
}
|
||||
|
||||
@@ -54,12 +58,14 @@ class DriverMoFangFunctionManager private constructor() {
|
||||
* 鸣笛,鸣笛需要手动结束
|
||||
*/
|
||||
fun sendOperatorSetHornByDriver(){
|
||||
d(SceneConstant.M_CHARTER_D + TAG,"sendOperatorSetHorn(1.0)")
|
||||
sendOperatorSetHorn(1.0)
|
||||
if (timerHorn == null) {
|
||||
timerHorn = Timer()
|
||||
}
|
||||
timerHorn!!.schedule(object : TimerTask() {
|
||||
override fun run() {
|
||||
d(SceneConstant.M_CHARTER_D + TAG,"sendOperatorSetHorn(2.0)")
|
||||
sendOperatorSetHorn(2.0)
|
||||
timerHorn = null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user