move to new version

This commit is contained in:
awe
2026-09-17 17:58:36 +03:00
parent e113ef60ab
commit e202f57ef8
16 changed files with 864 additions and 67 deletions
@@ -64,6 +64,10 @@ _WEB_LIVE_SCHEMA = [
("gpr_start_freq_mhz", "Geometry & depth", _GPR_LIKE_MODES, _dual("_gpr_start_freq_mhz", {"legacy_gpr": "_legacy_gpr_start_freq_mhz", "sar3d": "_sar3d_start_freq_mhz"})),
("gpr_stop_freq_mhz", "Geometry & depth", _GPR_LIKE_MODES, _dual("_gpr_stop_freq_mhz", {"legacy_gpr": "_legacy_gpr_stop_freq_mhz", "sar3d": "_sar3d_stop_freq_mhz"})),
("gpr_imaging_plane_y_m", "Geometry & depth", ("gpr",), _attr("_gpr_imaging_plane_y_m")),
("gpr_plane_mode", "Geometry & depth", ("gpr",), _attr("_gpr_plane_mode")),
("gpr_ground_depth_m", "Geometry & depth", ("gpr",), _attr("_gpr_ground_depth_m")),
("gpr_ground_pitch_override_enabled", "Geometry & depth", ("gpr",), _attr("_gpr_ground_pitch_override_enabled")),
("gpr_ground_pitch_deg", "Geometry & depth", ("gpr",), _attr("_gpr_ground_pitch_deg")),
("gpr_range_comp_power", "Imaging", ("gpr",), _attr("_gpr_range_comp_power")),
("gpr_score_mode", "Imaging", ("gpr",), _attr("_gpr_score_mode")),
("gpr_background_subtract_enabled", "Imaging", _GPR_MODES, _dual("_gpr_background_subtract_enabled", {"legacy_gpr": "_legacy_gpr_background_subtract_enabled"})),
@@ -82,6 +86,8 @@ _WEB_LIVE_SCHEMA = [
("gpr_visible_z_min_m", "Visible window", _GPR_MODES, _dual("_gpr_visible_z_min_m", {"legacy_gpr": "_legacy_gpr_visible_z_min_m"})),
("gpr_visible_z_max_m", "Visible window", _GPR_MODES, _dual("_gpr_visible_z_max_m", {"legacy_gpr": "_legacy_gpr_visible_z_max_m"})),
("gpr_motion_mode", "Motion", ("gpr",), _attr("_gpr_motion_mode")),
("gpr_timing_mode", "Motion", ("gpr",), _attr("_gpr_timing_mode")),
("gpr_tx_per_segment", "Motion", ("gpr",), _attr("_gpr_tx_per_segment")),
("gpr_look_angle_deg", "Motion", _GPR_LIKE_MODES, _dual("_gpr_look_angle_deg", {"legacy_gpr": "_legacy_gpr_look_angle_deg", "sar3d": "_sar3d_look_angle_deg"})),
("gpr_direction_sign", "Motion", ("gpr", "sar3d"), _dual("_gpr_direction_sign", {"sar3d": "_sar3d_direction_sign"})),
("gpr_apply_freq_phase_correction", "Motion", ("legacy_gpr", "sar3d"), _dual("_legacy_gpr_apply_freq_phase_correction", {"sar3d": "_sar3d_apply_freq_phase_correction"})),
@@ -309,6 +309,12 @@ class AppWindowConfigProfileIOMixin:
self._gpr_background_mean_count,
self._gpr_remove_sidelobe_objects_enabled,
self._gpr_imaging_plane_y_m,
self._gpr_timing_mode,
self._gpr_tx_per_segment,
self._gpr_plane_mode,
self._gpr_ground_depth_m,
self._gpr_ground_pitch_override_enabled,
self._gpr_ground_pitch_deg,
self._gpr_render_mode,
self._gpr_visible_x_min_m,
self._gpr_visible_x_max_m,
@@ -507,6 +513,16 @@ class AppWindowConfigProfileIOMixin:
bool(gui_state.processing.gpr.remove_sidelobe_objects_enabled)
)
self._gpr_imaging_plane_y_m.setValue(float(gui_state.processing.gpr.imaging_plane_y_m))
self._set_combo_current_text(self._gpr_timing_mode, gui_state.processing.gpr.timing_mode)
self._gpr_tx_per_segment.setValue(int(gui_state.processing.gpr.tx_per_segment))
self._set_combo_current_text(self._gpr_plane_mode, gui_state.processing.gpr.plane_mode)
self._gpr_ground_depth_m.setValue(float(gui_state.processing.gpr.ground_depth_m))
ground_pitch_override_enabled = bool(
gui_state.processing.gpr.ground_pitch_override_enabled
)
self._gpr_ground_pitch_override_enabled.setChecked(ground_pitch_override_enabled)
self._gpr_ground_pitch_deg.setValue(float(gui_state.processing.gpr.ground_pitch_deg))
self._gpr_ground_pitch_deg.setEnabled(ground_pitch_override_enabled)
self._set_combo_current_text(self._gpr_render_mode, gui_state.processing.gpr.render_mode)
self._gpr_visible_x_min_m.setValue(float(gui_state.processing.gpr.visible_x_min_m))
self._gpr_visible_x_max_m.setValue(float(gui_state.processing.gpr.visible_x_max_m))
@@ -391,6 +391,12 @@ class AppWindowConfigStateBuildersMixin:
background_mean_count=int(self._gpr_background_mean_count.value()),
remove_sidelobe_objects_enabled=bool(self._gpr_remove_sidelobe_objects_enabled.isChecked()),
imaging_plane_y_m=float(self._gpr_imaging_plane_y_m.value()),
timing_mode=self._gpr_timing_mode.currentText(),
tx_per_segment=int(self._gpr_tx_per_segment.value()),
plane_mode=self._gpr_plane_mode.currentText(),
ground_depth_m=float(self._gpr_ground_depth_m.value()),
ground_pitch_override_enabled=bool(self._gpr_ground_pitch_override_enabled.isChecked()),
ground_pitch_deg=float(self._gpr_ground_pitch_deg.value()),
render_mode=self._gpr_render_mode.currentText(),
visible_x_min_m=float(self._gpr_visible_x_min_m.value()),
visible_x_max_m=float(self._gpr_visible_x_max_m.value()),