pcp-tgu-ops-ui: панель «Параметры включения» в инспекторе маршрута
- WorkInspector показывает аппарат, виток, крен, угол захвата, центр контура (съёмка) и станцию/сбрасываемые съёмки (сброс) - planModesToWorks/addShoot прокидывают planModeId, revolution, rollDeg, captureAngleDeg, centerLat/Lon, surveyIds в модель включения - место под перечень заданий маршрута (привязка — позже) - секция «Станция приёма» рендерится только в режиме правки
This commit is contained in:
@@ -22,6 +22,12 @@ export type AddShootInput = {
|
||||
label: string;
|
||||
modeId?: string;
|
||||
target: EditorTarget;
|
||||
/** Параметры построенного маршрута (если съёмка строилась с превью). */
|
||||
revolution?: number;
|
||||
rollDeg?: number;
|
||||
captureAngleDeg?: number;
|
||||
centerLat?: number;
|
||||
centerLon?: number;
|
||||
};
|
||||
|
||||
export type AddDownlinkInput = {
|
||||
@@ -66,6 +72,12 @@ export function planModesToWorks(modes: PlanMode[]): EditorWork[] {
|
||||
startMs,
|
||||
endMs,
|
||||
origin: "plan",
|
||||
planModeId: mode.id,
|
||||
revolution: mode.revolution,
|
||||
rollDeg: mode.roll,
|
||||
centerLat: mode.lat,
|
||||
centerLon: mode.longitude,
|
||||
// Центр контура — он же опорная точка для проверки видимости.
|
||||
targetLat: mode.lat,
|
||||
targetLon: mode.longitude
|
||||
}];
|
||||
@@ -78,7 +90,10 @@ export function planModesToWorks(modes: PlanMode[]): EditorWork[] {
|
||||
startMs,
|
||||
endMs,
|
||||
origin: "plan",
|
||||
stationId: mode.station ?? undefined
|
||||
planModeId: mode.id,
|
||||
revolution: mode.revolution,
|
||||
stationId: mode.station ?? undefined,
|
||||
surveyIds: mode.surveys
|
||||
}];
|
||||
});
|
||||
}
|
||||
@@ -136,6 +151,11 @@ export function addShoot(draft: Draft, input: AddShootInput): Draft {
|
||||
targetName: input.target.name,
|
||||
targetLat: input.target.lat,
|
||||
targetLon: input.target.lon,
|
||||
revolution: input.revolution,
|
||||
rollDeg: input.rollDeg,
|
||||
captureAngleDeg: input.captureAngleDeg,
|
||||
centerLat: input.centerLat,
|
||||
centerLon: input.centerLon,
|
||||
origin: "added",
|
||||
isNew: true
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user