poe-svelte-ui-lib 2.15.2 → 2.15.3

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.
@@ -174,6 +174,11 @@ declare const constructorTranslations: {
174
174
  en: string;
175
175
  zh: string;
176
176
  };
177
+ "component.info.WidgetLoRa": {
178
+ ru: string;
179
+ en: string;
180
+ zh: string;
181
+ };
177
182
  "component.info.WidgetStackInfo": {
178
183
  ru: string;
179
184
  en: string;
@@ -126,6 +126,11 @@ const constructorTranslations = {
126
126
  en: '🎯 **Purpose**\nA real-time map of objects: position, heading and track of each object. Two other modes build a mission: "Route" is a waypoint planner, "Agro" is a spraying mission generator for an agricultural drone.\n\n📦 **Data packet**\n- Device field groups, one group per object: `MAV` by default, several separated by spaces (`MAV GNSS`); no variable binding needed\n- Telemetry stream: coordinates every 0.5-1 s, name and serial number less often\n- "Objects" only displays; "Route" and "Agro" pass the mission out through `onSend`, the plan is kept by the map owner (`route` / `plan` and their callbacks)\n\n🔑 **Keys**\n- `Lat` - number, °: latitude, required; `Lat` and `Lon` = 0 - no fix, the object is not drawn\n- `Lon` - number, °: longitude, required\n- `Alt` - number, m: altitude\n- `Heading` - number, 0-360°: heading, rotates the marker\n- `Sat` - satellite count\n- `DevName` - string: object name, the marker label; without it - the group name\n- `DevSN` - string: serial number\n- `WPNum` - number of the current mission command; only "Route" and "Agro" use it for progress in the header\n\n✨ **Features**\n- Keys are shared with the "Flight Display" and "About Device" - one packet feeds several widgets\n- Click an object - a card with all values, "Copy", "Follow" and "Hide" buttons\n- The operator switches the track, its point count and marker timeout on the map; an object without new data turns red, after one more timeout it is hidden\n- "Show all" in the header fits all objects into view; the map never moves by itself\n- The header shows how many of the configured objects are online\n- 2D only: zoom with the mouse wheel or two fingers, the right mouse button rotates the map, the compass in the top right corner returns it to north\n- The master color paints the whole widget: buttons, route line, points, takeoff point, transits and the vehicle in simulation. Meaningful colors stay: fields green, no-fly zones red, turns orange; "Clear", delete and send error red\n\n⚙️ **Settings**\n- Field groups, master color\n- Map height `S`/`M`/`L`/`XL`, marker icon\n- Defaults: track and its point count\n- Mode: "Objects", "Route" or "Agro"\n- Simulation mode: six vehicles in "Objects", a flight along the path in "Route" and "Agro"; the simulation panel is at the bottom center of the map\n\n📍 **Route mode**\n- A regular planner: points in flight order, each with its own altitude and speed\n- "Waypoint editor" in the top left corner of the map turns on editing: a click adds a point, points can be dragged, a segment midpoint inserts one, right-click removes; "Done" or Esc ends editing; otherwise only numbers are shown\n- Altitude, speed and removal in the point list of the Summary block, order is changed by dragging a row; return and land (RTL)\n- QGC WPL 110 mission: takeoff, points, RTL; "Download", "Copy", "Send"; vehicles from the groups are shown over the route\n- Progress in the header: from the simulation, otherwise from `WPNum` and the position of the vehicle from the first group\n- "Show all" in the header fits the whole route and the takeoff point into view; this also happens by itself when the map appears (page load, widget expanded)\n\n🌾 **Agro mode**\n- One or more fields and no-fly zones on the map become a spraying path\n- "Field editor" and "No-fly zone editor" in the top left corner of the map: an outline is traced by clicks and closed by clicking the first point, a double click, Enter or "Close"; vertices can be dragged, a side midpoint adds a point, right-click removes; the takeoff point can always be dragged\n- A no-fly zone can lie inside a field, stick out over its edge or stand outside fields. Only its part inside the field is cut from the passes, and the field area is reduced only by that part\n- ⚠️ Transits from takeoff to a field, between fields and back home avoid all zones with the margin. Be sure to outline power line poles, towers, trees and buildings between fields as zones, otherwise the vehicle flies straight and may crash into them\n- Passes are spaced no wider than the swath; the outer passes keep the margin from the edge, zones are kept at the margin too; defaults: swath 5 m, margin 2 m\n- Zones and notches split a field into cells; up to 10 cells their order is checked exhaustively, beyond that nearest first with 2-opt improvement; transits and turns follow the shortest path around zones\n- Fields are flown one after another, nearest first, each field has its own pass angle\n- "Auto-calculate" picks each field\'s angle from the full path: cost is flight time plus 4 s per turn plus a penalty for missed spraying (a missed meter of pass counts as three meters of flight). Search: 5° steps and field side directions, then 1° around the three best, then 0.1° around the winner; about 75 calculations per field, progress on the map. The "i" button next to it opens a detailed explanation for the operator\n- "Show all" in the header fits all fields, zones and the takeoff point into view; this also happens by itself when the map appears (page load, widget expanded)\n- In the Summary block hovering a field or zone highlights its outline on the map, clicking its name zooms the map to it\n- Coverage below 100 % is mostly due to the margin from boundaries and zones\n- The sprayer is on during passes and off on turns and transits: `DO_SPRAYER` or `DO_SET_SERVO`\n- QGC WPL 110 mission: "Download", "Copy", "Send" to the vehicle; vehicles from the groups are shown over the field\n- In simulation a quadcopter flies the passes, green while spraying\n- Without `plan` a demo opens: three fields near Minsk with zones inside fields, on their edges and between fields',
127
127
  zh: "🎯 **用途**\n实时对象地图:每个对象的位置、航向和轨迹。另外两个模式用于生成任务:「航线」是航点规划器,「农业」是农业无人机喷洒任务生成器。\n\n📦 **数据包**\n- 设备字段分组,每个分组一个对象:默认 `MAV`,多个用空格分隔(`MAV GNSS`);无需绑定变量\n- 遥测流:坐标每 0.5-1 秒一次,名称和序列号频率更低\n- 「对象」仅显示;「航线」和「农业」通过 `onSend` 输出任务,计划由地图的使用方保存(`route` / `plan` 及其回调)\n\n🔑 **键**\n- `Lat` - 数字,°:纬度,必需;`Lat` 和 `Lon` 为 0 - 无定位,不绘制对象\n- `Lon` - 数字,°:经度,必需\n- `Alt` - 数字,m:高度\n- `Heading` - 数字,0-360°:航向,旋转标记\n- `Sat` - 卫星数\n- `DevName` - 字符串:对象名称,标记标签;缺省时为分组名\n- `DevSN` - 字符串:序列号\n- `WPNum` - 当前任务指令编号;仅「航线」和「农业」用于标题栏中的进度\n\n✨ **特点**\n- 键与「飞行显示器」和「关于设备」通用 - 一个数据包可供多个组件使用\n- 点击对象 - 显示所有值的卡片,带「复制」、「跟随」和「隐藏」按钮\n- 操作员在地图上切换轨迹、轨迹点数和标记超时;无新数据的对象变红,再过一个超时后隐藏\n- 标题栏中的「显示全部」将对象纳入视野;地图本身不会自动移动\n- 标题栏显示已配置对象中在线的数量\n- 仅 2D:用鼠标滚轮或双指缩放,按住鼠标右键旋转地图,右上角的指南针将其恢复为正北\n- 主色作用于整个组件:按钮、航线、航点、起飞点、转场以及模拟中的飞行器。有含义的颜色保持不变:田块为绿色,禁飞区为红色,转弯为橙色;「清除」、删除和发送错误为红色\n\n⚙️ **设置**\n- 字段分组、主色\n- 地图高度 `S`/`M`/`L`/`XL`、标记图标\n- 默认值:轨迹及其点数\n- 模式:「对象」、「航线」或「农业」\n- 模拟模式:「对象」中六架飞行器,「航线」和「农业」中沿航线飞行;模拟面板位于地图底部中央\n\n📍 **航线模式**\n- 常规规划:按飞行顺序放置航点,每个航点有自己的高度和速度\n- 地图左上角的「航点编辑」开启编辑:点击地图添加航点,航点可拖动,拖动线段中点插入,右键删除;「完成」或 Esc 结束编辑;未开启时仅显示编号\n- 在“汇总”的航点列表中设置高度、速度和删除,拖动行可调整顺序;返航降落 (RTL)\n- QGC WPL 110 任务:起飞、航点、RTL;「下载」、「复制」、「发送」;分组中的飞行器显示在航线上方\n- 标题中的进度:模拟时取自模拟,否则根据第一个分组飞行器的 `WPNum` 和位置\n- 标题栏中的「显示全部」将整条航线和起飞点纳入视野;地图出现时(页面加载、展开组件)会自动执行\n\n🌾 **农业模式**\n- 地图上的一个或多个田块和禁飞区生成喷洒航线\n- 地图左上角的「田块编辑」和「禁飞区编辑」:点击绘制轮廓,点击第一个点、双击、Enter 或「闭合」完成;顶点可拖动,拖动边的中点添加顶点,右键删除;起飞点可随时拖动\n- 禁飞区可以位于田块内、跨出田块边缘或位于田块外。作业行只去掉其在田块内的部分,田块面积也只减去这部分\n- ⚠️ 从起飞点到田块、田块之间以及返航的转场都会按边距绕开所有禁飞区。务必把田块之间的电力线杆、塔、树木和建筑圈为禁飞区,否则飞行器会直线飞行并可能撞上它们\n- 作业行间距不大于喷幅;最外侧作业行与边缘保持边距,与禁飞区也保持边距;默认喷幅 5 m,边距 2 m\n- 禁飞区和缺口把田块分成若干单元;不超过 10 个单元时完整遍历顺序,更多时从最近的开始并用 2-opt 改进;转场和转弯沿绕开禁飞区的最短路径\n- 田块按由近到远依次作业,每个田块有自己的作业行角度\n- 「自动计算」按完整航线为每个田块选择角度:代价为飞行时间加每次转弯 4 s,再加漏喷惩罚(漏喷一米作业行按三米飞行计算)。搜索:5° 步长并加上田块各边方向,然后在三个最佳附近以 1° 步长,最后在胜出角度附近以 0.1° 步长;每个田块约 75 次计算,进度显示在地图上。旁边的「i」按钮为操作员打开详细说明\n- 标题栏中的「显示全部」将所有田块、禁飞区和起飞点纳入视野;地图出现时(页面加载、展开组件)会自动执行\n- 在“汇总”中将鼠标悬停在田块或禁飞区上会在地图上高亮其轮廓,点击名称会将地图缩放到该处\n- 覆盖率低于 100 % 主要是由于与边界和禁飞区的边距\n- 喷洒器在作业行开启,在转弯和转场时关闭:`DO_SPRAYER` 或 `DO_SET_SERVO`\n- QGC WPL 110 任务:「下载」、「复制」、「发送」到飞行器;分组中的飞行器显示在田块上方\n- 模拟中四旋翼沿作业行飞行,喷洒时为绿色\n- 未传入 `plan` 时打开演示:明斯克附近三个田块,禁飞区位于田块内、田块边缘以及田块之间",
128
128
  },
129
+ "component.info.WidgetLoRa": {
130
+ ru: "🎯 **Назначение**\nНастройки радио LoRa: частота, мощность, полоса, SF, CR, преамбула, CRC и инверсия IQ. Виджет не привязан к микросхеме: где лежит каждый параметр, задаётся в конструкторе.\n\n📦 **Пакет данных**\n- Ключи группы устройства, по умолчанию `LORA`; привязывать переменные не нужно\n- Сохранение - один `SET ModCfg` по кнопке «Сохранить»: свои биты пишутся поверх текущего слова, чужие не меняются\n\n🔑 **Ключи**\n- `Freq` - частота, МГц\n- `TxP` - мощность, дБм\n- `BW` - полоса, кГц\n- `SF` - спред-фактор 7-12\n- `CR` - скорость кодирования 4/5-4/8\n- `Preamble` - длина преамбулы\n- `CRC`, `InvIQ` - вкл/выкл\n- Каждый параметр - свой ключ или биты общего слова; число в прошивке = значение × масштаб + смещение, либо таблица кодов `имя=код`\n\n✨ **Особенности**\n- Показываются и отправляются только включённые параметры\n- Пока правки не сохранены, под кнопкой висит напоминание\n- У базы и всех её модулей радио должно быть настроено одинаково: меняйте сначала модули, потом базу\n\n⚙️ **Настройки**\n- Префикс группы, мастер-цвет\n- Шаблон драйвера: `HT_CT62` - всё в слове `Cfg` (ProdFactory-ESP и STM32WL)\n- У каждого параметра: ключ, биты, масштаб, смещение, мин/макс/шаг или таблица кодов",
131
+ en: '🎯 **Purpose**\nLoRa radio settings: frequency, power, bandwidth, SF, CR, preamble, CRC and IQ inversion. The widget is not tied to a chip: where each parameter lives is set in the constructor.\n\n📦 **Data packet**\n- Keys of a device group, `LORA` by default; no variable binding needed\n- Saving is one `SET ModCfg` on the "Save" button: its bits are written over the current word, other bits stay\n\n🔑 **Keys**\n- `Freq` - frequency, MHz\n- `TxP` - power, dBm\n- `BW` - bandwidth, kHz\n- `SF` - spreading factor 7-12\n- `CR` - coding rate 4/5-4/8\n- `Preamble` - preamble length\n- `CRC`, `InvIQ` - on/off\n- Each parameter is its own key or bits of a shared word; firmware number = value × scale + offset, or a code table `name=code`\n\n✨ **Features**\n- Only enabled parameters are shown and sent\n- Until changes are saved, a reminder stays under the button\n- The base and all its modules must have the same radio settings: change the modules first, then the base\n\n⚙️ **Settings**\n- Group prefix, master color\n- Driver preset: `HT_CT62` - everything in the `Cfg` word (ProdFactory-ESP and STM32WL)\n- For each parameter: key, bits, scale, offset, min/max/step or a code table',
132
+ zh: "🎯 **用途**\nLoRa 无线设置:频率、功率、带宽、SF、CR、前导码、CRC 和 IQ 反转。组件不绑定具体芯片:每个参数在固件中的位置在构造器中设置。\n\n📦 **数据包**\n- 设备分组的键,默认 `LORA`;无需绑定变量\n- 保存为「保存」按钮发送的一次 `SET ModCfg`:只覆盖自己的位,其他位不变\n\n🔑 **键**\n- `Freq` - 频率,MHz\n- `TxP` - 功率,dBm\n- `BW` - 带宽,kHz\n- `SF` - 扩频因子 7-12\n- `CR` - 编码率 4/5-4/8\n- `Preamble` - 前导码长度\n- `CRC`、`InvIQ` - 开/关\n- 每个参数是独立的键或共享字中的位;固件中的数值 = 值 × 比例 + 偏移,或代码表 `名称=代码`\n\n✨ **特点**\n- 只显示和发送已启用的参数\n- 未保存更改时,按钮下方显示提醒\n- 基站及其所有模块的无线设置必须一致:先改模块,再改基站\n\n⚙️ **设置**\n- 分组前缀、主色\n- 驱动模板:`HT_CT62` - 全部在 `Cfg` 字中(ProdFactory-ESP 和 STM32WL)\n- 每个参数:键、位、比例、偏移、最小/最大/步长或代码表",
133
+ },
129
134
  "component.info.WidgetStackInfo": {
130
135
  ru: '🎯 **Назначение**\nОтладка прошивки: свободная память и запас стека задач.\n\n📦 **Пакет данных**\n- Один объект `StackInfo` из ответа на `GET StackInfo`, привязывать переменные не нужно\n- Запрос - кнопкой «Обновить» или автоопросом\n\n🔑 **Ключи**\n- `Heap` - массив `[{ "Name", "Total", "Free", "MinFree" }]`, байт: кучи памяти - `Internal` встроенная и `PSRAM` внешняя ОЗУ у ESP, `Heap` у STM, в виджете понятными подписями; `MinFree` - минимум свободного с момента старта\n- `Tasks` - массив `[{ "Name", "State", "Prio", "Core", "CPU", "FreeMin" }]`: задачи; `State` - `0` выполняется, `1` готова, `2` ждёт, `3` приостановлена, `4` удалена; `Core` - ядро (только ESP32, `-1` без привязки); `CPU` - загрузка задачи, % одного ядра с прошлого ответа; `FreeMin` - минимальный запас стека, байт\n\n✨ **Особенности**\n- Светлая часть полосы кучи - пик занятости\n- Задачи отсортированы по запасу стека - самые рискованные сверху\n- Загрузка от 50 % - оранжевым, от 80 % - красным (кроме `IDLE` - это свободное время ядра); колонка есть, если прошивка её присылает\n- Свёрнутый виджет не опрашивает устройство\n\n⚙️ **Настройки**\n- Порог запаса стека: меньше порога - красным, меньше удвоенного - оранжевым\n- Автоопрос: выкл / 1 / 5 / 10 с; мастер-цвет',
131
136
  en: '🎯 **Purpose**\nFirmware debugging: free memory and task stack headroom.\n\n📦 **Data packet**\n- One `StackInfo` object from the `GET StackInfo` response, no variable binding needed\n- Requested with the "Refresh" button or by auto polling\n\n🔑 **Keys**\n- `Heap` - array `[{ "Name", "Total", "Free", "MinFree" }]`, bytes: memory heaps - `Internal` on-chip and `PSRAM` external RAM on ESP, `Heap` on STM, shown with readable names; `MinFree` - minimum free since boot\n- `Tasks` - array `[{ "Name", "State", "Prio", "Core", "CPU", "FreeMin" }]`: tasks; `State` - `0` running, `1` ready, `2` blocked, `3` suspended, `4` deleted; `Core` - core (ESP32 only, `-1` unpinned); `CPU` - task load, % of one core since the previous response; `FreeMin` - minimum stack headroom, bytes\n\n✨ **Features**\n- The light part of the heap bar is peak usage\n- Tasks are sorted by stack headroom - the riskiest on top\n- Load from 50 % - orange, from 80 % - red (except `IDLE` - that is free core time); the column appears if the firmware sends it\n- A collapsed widget does not poll the device\n\n⚙️ **Settings**\n- Stack threshold: below it - red, below double - orange\n- Auto polling: off / 1 / 5 / 10 s; master color',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-svelte-ui-lib",
3
- "version": "2.15.2",
3
+ "version": "2.15.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Oleg-Perevyshin/ElementsUI.git"