feat(k1): complete canonical control lifecycle
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
import type { SelectOption } from "@nodedc/ui-react";
|
||||
|
||||
export type ConnectionMode = "bridge" | "quick-connect" | "direct-connect";
|
||||
export type MountType = "handheld" | "vehicle-mounted" | "uav" | "backpack";
|
||||
export type GnssMode = "none" | "rtk" | "ppk";
|
||||
|
||||
export const SUPPORTED_CONNECTION_MODE = "bridge" as const satisfies ConnectionMode;
|
||||
export const SUPPORTED_MOUNT_TYPE = "handheld" as const satisfies MountType;
|
||||
export const SUPPORTED_GNSS_MODE = "none" as const satisfies GnssMode;
|
||||
|
||||
export const connectionModeOptions: Array<SelectOption<ConnectionMode>> = [
|
||||
{
|
||||
value: "bridge",
|
||||
label: "Общая сеть · Bridge",
|
||||
description: "K1 и Mission Core работают в одной локальной сети. Подтверждённый путь.",
|
||||
},
|
||||
{
|
||||
value: "quick-connect",
|
||||
label: "Точка доступа K1 · Quick Connect",
|
||||
description: "Mission Core подключается к сети сканера. Будет доступно после отдельной приёмки.",
|
||||
disabled: true,
|
||||
},
|
||||
{
|
||||
value: "direct-connect",
|
||||
label: "Хотспот контроллера · Direct Connect",
|
||||
description: "K1 подключается к сети управляющего устройства. Будет доступно после отдельной приёмки.",
|
||||
disabled: true,
|
||||
},
|
||||
];
|
||||
|
||||
export const mountTypeOptions: Array<SelectOption<MountType>> = [
|
||||
{
|
||||
value: "handheld",
|
||||
label: "Ручной",
|
||||
description: "Подтверждённый канонический профиль MountType.HANDHELD.",
|
||||
},
|
||||
{
|
||||
value: "vehicle-mounted",
|
||||
label: "На наземной платформе",
|
||||
description: "Vehicle-Mounted. Недоступно до отдельной приёмки START/STOP.",
|
||||
disabled: true,
|
||||
},
|
||||
{
|
||||
value: "uav",
|
||||
label: "На БПЛА",
|
||||
description: "Drone/UAV. Недоступно до отдельной приёмки START/STOP.",
|
||||
disabled: true,
|
||||
},
|
||||
{
|
||||
value: "backpack",
|
||||
label: "Ранцевый",
|
||||
description: "Backpack. Недоступно до отдельной приёмки START/STOP.",
|
||||
disabled: true,
|
||||
},
|
||||
];
|
||||
|
||||
export const gnssModeOptions: Array<SelectOption<GnssMode>> = [
|
||||
{
|
||||
value: "none",
|
||||
label: "Без RTK",
|
||||
description: "RTK/NTRIP читаются только для обнаружения возможностей и не включаются.",
|
||||
},
|
||||
{
|
||||
value: "rtk",
|
||||
label: "Использовать RTK",
|
||||
description: "Недоступно до отдельного захвата настройки и физической приёмки.",
|
||||
disabled: true,
|
||||
},
|
||||
{
|
||||
value: "ppk",
|
||||
label: "Использовать PPK",
|
||||
description: "Недоступно до отдельного захвата настройки и физической приёмки.",
|
||||
disabled: true,
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user