设备状态界面机器人实时轨迹
This commit is contained in:
@@ -21,7 +21,7 @@ import DroneLivePlayer from '../VolcRtcPlayer.jsx';
|
||||
import DroneVideoPlayer from './DroneVideoPlayer';
|
||||
import AgoraTextTest from '../AgoraRtc.tsx';
|
||||
import { useWebRTCPlayer } from '../useWebRTCStream.tsx';
|
||||
import VideoPlayer from '../VideoPlayer.tsx.tsx';
|
||||
import VideoPlayer from '../VideoPlayer.tsx';
|
||||
import CesiumMap from '../Map.jsx';
|
||||
import { getUAVState, getSiteDevice, getSiteUAVList, getsinglePlan, getRobotTaskList, getDeviceTotalData, updateDeviceAliasApi } from '@/api/device.ts';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
@@ -159,6 +159,7 @@ export default function DeviceStatusPage({
|
||||
setPersistentDroneData(prevData => {
|
||||
const newData = { ...prevData };
|
||||
|
||||
|
||||
// 无人机特有字段
|
||||
if (host.battery?.capacity_percent !== undefined) {
|
||||
newData.capacity_percent = host.battery.capacity_percent;
|
||||
@@ -359,7 +360,7 @@ export default function DeviceStatusPage({
|
||||
return {
|
||||
lon: robotLon,
|
||||
lat: robotLat,
|
||||
//heading: runningStatus.yaw || wsDeviceInfo.yaw || 0,
|
||||
heading: runningStatus.pitch || wsDeviceInfo.pitch || 0,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -746,6 +747,7 @@ export default function DeviceStatusPage({
|
||||
finishPoint={arrivedPoint}
|
||||
ifClearNavLine={clearNavLine}
|
||||
ifClearPlanLine={clearPlanLine}
|
||||
from="deviceStatus"
|
||||
/>
|
||||
</Card>
|
||||
</Col>
|
||||
|
||||
@@ -22,6 +22,7 @@ export function MowerAllView({ serialNumber, robotVideo, error, ready }) {
|
||||
border: '1px solid #eae4e4',
|
||||
flexShrink: 0,// 禁止压缩
|
||||
borderRadius: 8,
|
||||
overflow: "hidden"
|
||||
}}>
|
||||
<VideoPlayer
|
||||
deviceId={serialNumber}
|
||||
@@ -41,6 +42,8 @@ export function MowerAllView({ serialNumber, robotVideo, error, ready }) {
|
||||
border: '1px solid #eae4e4',
|
||||
flexShrink: 0,// 禁止压缩
|
||||
borderRadius: 8,
|
||||
overflow: "hidden"
|
||||
|
||||
}}>
|
||||
<VideoPlayer
|
||||
deviceId={serialNumber}
|
||||
@@ -57,11 +60,13 @@ export function MowerAllView({ serialNumber, robotVideo, error, ready }) {
|
||||
<div style={{
|
||||
flex: 1,
|
||||
//width: 360,
|
||||
//height: 240,
|
||||
height: 240,
|
||||
position: 'relative',
|
||||
border: '1px solid #eae4e4',
|
||||
//flexShrink: 0,// 禁止压缩
|
||||
borderRadius: 8,
|
||||
overflow: "hidden"
|
||||
|
||||
}}>
|
||||
<VideoPlayer
|
||||
deviceId={serialNumber}
|
||||
@@ -84,6 +89,8 @@ export function MowerAllView({ serialNumber, robotVideo, error, ready }) {
|
||||
border: '1px solid #eae4e4',
|
||||
flexShrink: 0,// 禁止压缩
|
||||
borderRadius: 8,
|
||||
overflow: "hidden"
|
||||
|
||||
}}>
|
||||
<VideoPlayer
|
||||
deviceId={serialNumber}
|
||||
|
||||
Reference in New Issue
Block a user