From 5d468fb0b77a90252ac6e14ef891ce1776bb7754 Mon Sep 17 00:00:00 2001 From: mmc <1556375442@qq.com> Date: Mon, 12 Oct 2026 09:55:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4devicecontrol=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/devices/DeviceControl.tsx | 34 +++++++++++++++++++----- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/src/components/devices/DeviceControl.tsx b/src/components/devices/DeviceControl.tsx index 65be71c..067f63a 100644 --- a/src/components/devices/DeviceControl.tsx +++ b/src/components/devices/DeviceControl.tsx @@ -10,6 +10,8 @@ import { X } from 'lucide-react'; import XboxController from './XboxController'; +import RobotFeatureButtons from './RobotFeatureButtons'; +import DPadControl from './DPadControl'; import { getControlRight, getFlightTaskDetail, getJurisdiction, getLiveStream, getPlaneDeviceList, getsinglePlan, getsinglePlanTrack, getUAVState, getWayLine, getWorkData, getWorkList, postFlightCommmand, saveDeviceTask, updateFlightTaskStatus } from '@/api/api'; import { message as antdMessage, Button, DatePicker, Input, InputNumber, Modal, Select, Tooltip } from 'antd'; @@ -1564,6 +1566,17 @@ const RobotControlCenter = ({ setView }) => { */} + {/* Feature buttons */} +
+

{t('devices.features.title')}

+ { + console.log('[Feature]', feature, enabled); + }} + /> +
+ {/* 控制区:左轮 + Xbox + 右轮 —— 紧凑布局 */}
{/* 左轮速度面板 - 缩小 */} @@ -1612,13 +1625,20 @@ const RobotControlCenter = ({ setView }) => {
{/* Xbox 手柄 - 缩小、居中 */} -
- +
+
+ +
+
+

{t('devices.dpad.title')}

+ +
{/* 右轮速度面板 - 缩小 */}