@gaidalou/control 1.0.20 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -45765,8 +45765,10 @@ const cS = "MYESP32", dS = ["000000ff-0000-1000-8000-00805f9b34fb"], fS = {
45765
45765
  }, pS = ["ok", "horizontalSpeed", "verticalSpeed", "manualInvestigation", "algorithm", "openAiView", "remoteIntercom", "flashingLighting", "realTimeShouting"], vS = ["leftYaoGanLR", "leftYaoGanTB", "rightYaoGanLR", "rightYaoGanTB", "centerYaoGanLR", "centerYaoGanTB", "leftYaoGanRoll", "rightYaoGanRoll"], ms = {
45766
45766
  0: "version1",
45767
45767
  // 第一代
45768
- 1: "version2"
45768
+ 1: "version2",
45769
45769
  // 第二代
45770
+ 2: "version3"
45771
+ // 第三版 增加了平台类型 机库名称 机库与无人机距离的发送 这个要注意
45770
45772
  }, Fy = {
45771
45773
  // 第一代
45772
45774
  [ms[0]]: {
@@ -46413,7 +46415,7 @@ const Ec = class Ec {
46413
46415
  }
46414
46416
  static async sendMsg(t) {
46415
46417
  try {
46416
- if (!this.instance)
46418
+ if (!this.instance || !this.instance.serialPort)
46417
46419
  return;
46418
46420
  let n = this.instance.serialPort.writable.getWriter(), { value: o } = t;
46419
46421
  await n.write(new Uint8Array(o)), n.releaseLock();
@@ -46913,8 +46915,8 @@ const DU = {
46913
46915
  blueLinkText: "blueLinkText",
46914
46916
  blueDisconnectText: "blueDisconnectText",
46915
46917
  usbLinkText: "usbLinkText",
46916
- testModel: !0,
46917
- usbDisconnectText: "usbDisconnectText"
46918
+ usbDisconnectText: "usbDisconnectText",
46919
+ ref: "controlRef"
46918
46920
  }, {
46919
46921
  blueUnlink: te(() => n[0] || (n[0] = [
46920
46922
  q("div", null, " blueLink ", -1)
@@ -46929,7 +46931,7 @@ const DU = {
46929
46931
  q("div", null, " usbUnlink ", -1)
46930
46932
  ])),
46931
46933
  _: 1
46932
- })
46934
+ }, 512)
46933
46935
  ]));
46934
46936
  }
46935
46937
  }, LU = {