根据传回来的角速度和线速度 优化显示倒车影像,未测试
This commit is contained in:
@@ -2797,7 +2797,13 @@ export default function DeviceStatusPage() {
|
||||
|
||||
<AgrtcRoomRobot CHANNEL={"41-thream03"} />
|
||||
|
||||
<CarReverseGuideLine direction="forward" steer={steerXY.x * 45} visible={isVideoPlaying} />
|
||||
<CarReverseGuideLine
|
||||
direction="forward"
|
||||
steer={steerXY.x * 45}
|
||||
linearSpeed={Number(runningStatus?.linear_speed ?? runningStatus?.linearSpeed)}
|
||||
angularSpeed={Number(runningStatus?.angular_speed ?? runningStatus?.angularSpeed)}
|
||||
visible={isVideoPlaying}
|
||||
/>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -2821,7 +2827,15 @@ export default function DeviceStatusPage() {
|
||||
|
||||
/>
|
||||
|
||||
{mowerView === 'back' && (<CarReverseGuideLine direction="reverse" steer={steerXY.x * 45} visible={isVideoPlaying} />)}
|
||||
{mowerView === 'back' && (
|
||||
<CarReverseGuideLine
|
||||
direction="reverse"
|
||||
steer={steerXY.x * 45}
|
||||
linearSpeed={Number(runningStatus?.linear_speed ?? runningStatus?.linearSpeed)}
|
||||
angularSpeed={Number(runningStatus?.angular_speed ?? runningStatus?.angularSpeed)}
|
||||
visible={isVideoPlaying}
|
||||
/>
|
||||
)}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user