@@ -56,6 +56,12 @@ configuration step, write to the selected file, or ask whether temporary edits s
5656 Upload checkbox is not selected. Close the modal after a successful upload without advancing the
5757 AMC configuration step.
5858
59+ 7 . ** Post-upload synchronization** :
60+ - After a successful upload and verification download, update the FC-value snapshot in each
61+ external ` ArduPilotParameter ` object from the refreshed ` fc_parameters ` cache.
62+ - Refresh the underlying parameter table whenever the compare-and-upload window closes so it
63+ reflects the latest FC parameter values.
64+
5965### Non-Functional Requirements
6066
6167- Avoid duplicating parameter table rendering and upload orchestration.
@@ -120,6 +126,8 @@ filesystem state.
120126 - Apply the changed-only filter.
121127 - Obtain the checked upload payload from the table.
122128 - Run upload precondition checks and delegate to the parent upload workflow.
129+ - Synchronize external FC-value snapshots after successful upload verification.
130+ - Refresh the parent parameter table when the modal closes.
123131 - Close without invoking project navigation or save operations.
124132
125133The modal upload button does not duplicate the entry-point connection-state gate. The upload
@@ -218,8 +226,9 @@ Each external parameter has four relevant pieces of state:
218226| Manual selection | ` ParameterTableOptions.manually_editable_parameters ` | Modal lifetime | No |
219227
220228The FC value and parameter metadata in each external parameter object are snapshots supplied when
221- the object is created. The shared upload workflow refreshes its FC parameter cache for verification;
222- it does not convert the modal's original comparison values into project state.
229+ the object is created. After a successful external upload and verification download, the modal
230+ updates those FC-value snapshots from the refreshed cache before closing. Closing the modal also
231+ repopulates the underlying parameter table so it displays the latest FC values.
223232
224233## Detailed Workflows
225234
@@ -269,8 +278,10 @@ forced and derived parameters in AMC-managed configuration steps.
2692786 . Reset-required parameters, reconnection, remaining uploads, re-download, and validation follow
270279 the normal parameter editor rules.
2712807 . The user reviews the differences and may edit values temporarily before pressing ` Upload selected params to the FC ` .
272- 8 . On success the modal closes.
273- 9 . The current AMC configuration step is not saved, skipped, or advanced; no tuning report or
281+ 8 . On success the modal updates the external parameters' FC-value snapshots from the verified
282+ download and closes.
283+ 9 . Closing the modal repopulates the underlying AMC parameter table with the latest FC values.
284+ 10 . The current AMC configuration step is not saved, skipped, or advanced; no tuning report or
274285 FC-difference export is written.
275286
276287## Data Integrity Invariants
@@ -326,6 +337,8 @@ The following invariants define the boundary between external upload and project
326337- Verify external-only names do not access ` current_step_parameters ` .
327338- Verify only Upload-checked parameters enter the payload.
328339- Verify the modal delegates to the shared upload workflow and never advances the project.
340+ - Verify successful uploads update external FC-value snapshots from the verified download.
341+ - Verify closing the modal refreshes the underlying parameter table.
329342- Verify a failed model upload leaves the modal open.
330343- Verify Manual toggles update only the affected row rather than rebuilding the static table.
331344- Verify file-selection and parse-error orchestration.
0 commit comments