Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CUSTOMIZING_CONFIGURATION_STEPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ It contains the following top-level properties:

```json
{
"Format version": 1,
"Format version": 2,
"Program version": "x.x.x",
"Configuration template": "Template Name",
"Components": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from ardupilot_methodic_configurator import _

VEHICLE_COMPONENTS_FORMAT_VERSION = 1
VEHICLE_COMPONENTS_FORMAT_VERSION = 2
_VEHICLE_COMPONENTS_JSON_FILENAME = "vehicle_components.json"

# ---------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ def create_new_vehicle_from_template(
self.open_vehicle_directory(new_path)
return new_path

def create_new_vehicle_from_bin_log(
def create_new_vehicle_from_bin_log( # pylint: disable=too-many-locals
self,
bin_file: str,
progress_callback: Callable[[int, int], None] | None = None,
) -> str: # pylint: disable=too-many-locals
) -> str:
"""
Create a new vehicle configuration directory from an ArduPilot .bin log file.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"Components": {
"Flight Controller": {
"Product": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/force_format_version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

# SPDX-License-Identifier: GPL-3.0-or-later

Get-ChildItem -Path "ardupilot_methodic_configurator\vehicle_templates" -Recurse -Filter "vehicle_components.json" | ForEach-Object { (Get-Content $_.FullName -Raw) -replace '"Format version": 1', '"Format version": 0' | Set-Content $_.FullName -NoNewline }
Get-ChildItem -Path "ardupilot_methodic_configurator\vehicle_templates" -Recurse -Filter "vehicle_components.json" | ForEach-Object { (Get-Content $_.FullName -Raw) -replace '"Format version": \d+', '"Format version": 0' | Set-Content $_.FullName -NoNewline }
2 changes: 1 addition & 1 deletion windows/settings_template.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"Format version": 1,
"Format version": 2,
"display_usage_popup": {
"component_editor": true,
"component_editor_validation": true,
Expand Down
Loading