Commit 0c99800
committed
feat(configuration steps): Add vehicle project migration to format version 1 before filesystem init
- Introduce backend_filesystem_migration.py
- Adds format-version migration support for legacy vehicle projects
- Handles parameter extraction from old files into new step files
- Creates new fixed-content parameter files
- Removes obsolete legacy files
- Updates vehicle_components.json format version after migration
- Integrate migration into startup in __main__.py
- Run migrate_vehicle_project_if_needed(state.args.vehicle_dir) before LocalFilesystem creation
- Ensures renamed/split parameter files exist before local filesystem initialization
Update step metadata in JSON:
- configuration_steps_ArduCopter.json
- Add new step entries for migrated files (04_imu_temperature_calibration_finish.param, 07_remote_controller_controller.param, 10_battery_monitor.param, 17_safety_setup.param, 14_logging.param, 26_pid_notch_filter_logging.param, 45_autotune_finish.param, 49_windspeed_estimation_finish.param, plus others)
- Adjust derived/forced/delete parameter logic for new step placement
Testing / validation notes:
- backend_filesystem_migration.py compiles successfully
- Updated JSON files parse correctly
This commit makes legacy vehicle project upgrades automatic and consistent with the new parameter file layout and step metadata.1 parent 6a00a80 commit 0c99800
688 files changed
Lines changed: 5644 additions & 4384 deletions
File tree
- ardupilot_methodic_configurator
- vehicle_templates
- ArduCopter
- AirCar_v1
- Big_Owl
- Chimera7
- Demo32Motor_PeterHall
- FETtec-5
- GazeboIrisWithTargetFollow
- Holybro_X500_V2
- Holybro_X500
- Holybro_X650_LTE
- Hoverit_X11+
- Hoverit_X13
- Marmotte5v2
- ReadyToSkyZD550
- TarotFY680Hexacopter
- Tarot_X4
- X11_plus
- diatone_taycan_mxc
- 4.3.8-params
- 4.4.4-params
- 4.5.x-params
- 4.6.x-params
- empty_4.5.x
- empty_4.6.x
- ArduPlane/normal_plane
- Heli/OMP_M4
- Rover
- AION_R1
- Carisma_SCA-1E
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | 191 | | |
194 | 192 | | |
| 193 | + | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
207 | | - | |
208 | 206 | | |
209 | 207 | | |
| 208 | + | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | 226 | | |
230 | 227 | | |
231 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
356 | 357 | | |
357 | 358 | | |
358 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
359 | 365 | | |
360 | 366 | | |
361 | 367 | | |
| |||
0 commit comments