急停 发送ws 遥感控制 避免 raf循环闭包
This commit is contained in:
@@ -671,6 +671,7 @@ export default function DeviceStatusPage() {
|
||||
}, [device, uavState, currentDroneData]);
|
||||
|
||||
const handleGamepadUpdate = useCallback((state) => {
|
||||
console.log('handleGamepadUpdate called with state:', isControlled);
|
||||
// 无控制权限时:不发送消息,且只发起一次权限申请(避免手柄/方向盘高频更新刷屏)
|
||||
if (!isControlled) {
|
||||
if (!hasRequestedControlRef.current && !connecting) {
|
||||
|
||||
Reference in New Issue
Block a user