[6.6.0] union the chassis state in one caller
This commit is contained in:
@@ -11,10 +11,8 @@ import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutopilotActionsListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisBrakeStateListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisGearStateListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationGCJ02ListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisThrottleStateListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisStatesListenerManager
|
||||
import com.mogo.eagle.core.function.main.MainLauncherActivity
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils
|
||||
import com.zhjt.mogo.adas.data.bean.MogoReport
|
||||
@@ -129,9 +127,9 @@ class TestAutoPilotBeforeLaunch {
|
||||
}
|
||||
launch(Dispatchers.IO) {
|
||||
while (true) {
|
||||
CallerChassisBrakeStateListenerManager.invokeAutopilotBrake(Random.nextInt(10 .. 100).toFloat())
|
||||
CallerChassisThrottleStateListenerManager.invokeAutopilotThrottle(Random.nextInt(10..100).toFloat())
|
||||
CallerChassisGearStateListenerManager.invokeAutopilotGearData(GEAR_R)
|
||||
CallerChassisStatesListenerManager.invokeAutopilotBrake(Random.nextInt(10 .. 100).toFloat())
|
||||
CallerChassisStatesListenerManager.invokeAutopilotThrottle(Random.nextInt(10..100).toFloat())
|
||||
CallerChassisStatesListenerManager.invokeAutopilotGearData(GEAR_R)
|
||||
val current = CallerChassisLocationGCJ02ListenerManager.getChassisLocationGCJ02()
|
||||
CallerChassisLocationGCJ02ListenerManager.invokeChassisLocationGCJ02(current.also { it.gnssSpeed = Random.nextInt(0 ..20).toFloat(); it.setAcceleration(Random.nextInt(-100, 100).toDouble()) }, DEFAULT)
|
||||
delay(Random.nextInt(10..50).toLong())
|
||||
|
||||
Reference in New Issue
Block a user