diff --git a/src/components/Weather/WeatherCloudy.css b/src/components/Weather/WeatherCloudy.css new file mode 100644 index 0000000..8731c4f --- /dev/null +++ b/src/components/Weather/WeatherCloudy.css @@ -0,0 +1,23 @@ +.cloud-group { + height: 80px; +} + +.cloud { + font-size: 45px; + position: absolute; +} + +.cloud1 { + left: 10px; + animation: floatCloud 3s ease-in-out infinite; +} + +.cloud2 { + left: 60px; + animation: floatCloud 4s ease-in-out infinite; +} + +@keyframes floatCloud { + 0%, 100% { transform: translateX(0); } + 50% { transform: translateX(10px); } +} diff --git a/src/components/Weather/WeatherCloudy.jsx b/src/components/Weather/WeatherCloudy.jsx new file mode 100644 index 0000000..91f8658 --- /dev/null +++ b/src/components/Weather/WeatherCloudy.jsx @@ -0,0 +1,11 @@ +import "./WeatherCloudy.css"; + +export default function WeatherCloudy() { + return ( +
任务态势
+{selectedDevice.taskStatus}
+
+
当前位置
++ {selectedDevice?.position?.lon + ? Number(selectedDevice.position.lon).toFixed(2) + : '--'}, + {selectedDevice?.position?.lat + ? Number(selectedDevice.position.lat).toFixed(2) + : '--'} +
当前模式
+{selectedDevice?.type === 'plane' ? '无人机待命' : selectedDevice?.type === 'mower' ? '割草待命' : '待命'}
+电量/航向
+{selectedDevice?.battery}% / 92°
+速度
+{selectedDevice?.speed} m/s
+TCP链路
+{selectedDevice?.mqttLink}
+遥控接管
+{selectedDevice.remoteStatus}
+规划态势
+{selectedDevice.gpsPlan}
+任务状态
+{selectedDevice.taskStatus}
+实时速度
++ {Number(wsDeviceInfo?.leftMeasureSpeed || 0).toFixed(2)} + rpm +
+工作电流
++ {Number(wsDeviceInfo?.leftCurrent || 0).toFixed(2)} + A +
+实时速度
++ {Number(wsDeviceInfo?.rightMeasureSpeed || 0).toFixed(2)} + rpm +
+工作电流
++ {(Number(wsDeviceInfo?.rightMeasureSpeed || 0)).toFixed(2)} + A +
+GPS航点规划
+航点 {wp.id}
+{wp.lon}, {wp.lat}
+{rt.robotName}
+航点:{rt.waypoints.length} 个
+加载中...
+{modalcontent.content}
+ +