Rework radar system

This commit is contained in:
Ayzen
2026-10-06 12:32:26 +03:00
parent 552cdc688a
commit 5bb86b7165
299 changed files with 13537 additions and 27763 deletions
@@ -81,26 +81,22 @@
"port1": {
"name": "port1",
"driver_mode": "native",
"driver": "h7992",
"radar_port": 1,
"positions": 2,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 17,
"pin_b": 27,
"invert_logic": false
"pin_b": 27
},
"port2": {
"name": "port2",
"driver_mode": "native",
"driver": "h7992",
"radar_port": 2,
"positions": 4,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 22,
"pin_b": 23,
"invert_logic": false
"pin_b": 23
}
},
"control_button": {
@@ -172,26 +168,6 @@
"bundle_path": ""
}
},
"s11": {
"calibration": {
"open": {
"set_name": "",
"bundle_path": ""
},
"short": {
"set_name": "",
"bundle_path": ""
},
"load": {
"set_name": "",
"bundle_path": ""
}
},
"reference": {
"set_name": "",
"bundle_path": ""
}
},
"notch": {
"enabled": true,
"bands_hz": [],
@@ -57,26 +57,22 @@
"port1": {
"name": "port1",
"driver_mode": "native",
"driver": "h7992",
"radar_port": 1,
"positions": 2,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 17,
"pin_b": 27,
"invert_logic": false
"pin_b": 27
},
"port2": {
"name": "port2",
"driver_mode": "native",
"driver": "h7992",
"radar_port": 2,
"positions": 4,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 22,
"pin_b": 23,
"invert_logic": false
"pin_b": 23
}
},
"control_button": {
@@ -148,26 +144,6 @@
"bundle_path": ""
}
},
"s11": {
"calibration": {
"open": {
"set_name": "",
"bundle_path": ""
},
"short": {
"set_name": "",
"bundle_path": ""
},
"load": {
"set_name": "",
"bundle_path": ""
}
},
"reference": {
"set_name": "",
"bundle_path": ""
}
},
"notch": {
"enabled": true,
"bands_hz": [],
@@ -1,6 +1,6 @@
{
"radar": {
"model": "librevna_multi",
"model": "librevna_multi",
"serial": "209E307A5532",
"driver_mode": "native",
"multi_device": {
@@ -60,26 +60,22 @@
"port1": {
"name": "port1",
"driver_mode": "mock",
"driver": "h7992",
"radar_port": 1,
"positions": 2,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 17,
"pin_b": 27,
"invert_logic": false
"pin_b": 27
},
"port2": {
"name": "port2",
"driver_mode": "mock",
"driver": "h7992",
"radar_port": 2,
"positions": 4,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 22,
"pin_b": 23,
"invert_logic": false
"pin_b": 23
}
},
"control_button": {
@@ -151,26 +147,6 @@
"bundle_path": ""
}
},
"s11": {
"calibration": {
"open": {
"set_name": "",
"bundle_path": ""
},
"short": {
"set_name": "",
"bundle_path": ""
},
"load": {
"set_name": "",
"bundle_path": ""
}
},
"reference": {
"set_name": "",
"bundle_path": ""
}
},
"notch": {
"enabled": true,
"bands_hz": [],
@@ -1,6 +1,6 @@
{
"radar": {
"model": "librevna_multi",
"model": "librevna_multi",
"serial": "206830985532",
"driver_mode": "native",
"multi_device": {
@@ -60,26 +60,22 @@
"port1": {
"name": "port1",
"driver_mode": "mock",
"driver": "h7992",
"radar_port": 1,
"positions": 2,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 17,
"pin_b": 27,
"invert_logic": false
"pin_b": 27
},
"port2": {
"name": "port2",
"driver_mode": "mock",
"driver": "h7992",
"radar_port": 2,
"positions": 4,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 22,
"pin_b": 23,
"invert_logic": false
"pin_b": 23
}
},
"control_button": {
@@ -151,26 +147,6 @@
"bundle_path": ""
}
},
"s11": {
"calibration": {
"open": {
"set_name": "",
"bundle_path": ""
},
"short": {
"set_name": "",
"bundle_path": ""
},
"load": {
"set_name": "",
"bundle_path": ""
}
},
"reference": {
"set_name": "",
"bundle_path": ""
}
},
"notch": {
"enabled": true,
"bands_hz": [],
@@ -76,26 +76,22 @@
"port1": {
"name": "port1",
"driver_mode": "mock",
"driver": "h7992",
"radar_port": 1,
"positions": 4,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 17,
"pin_b": 27,
"invert_logic": false
"pin_b": 27
},
"port2": {
"name": "port2",
"driver_mode": "mock",
"driver": "h7992",
"radar_port": 2,
"positions": 4,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 22,
"pin_b": 23,
"invert_logic": false
"pin_b": 23
}
},
"control_button": {
@@ -202,26 +198,6 @@
"bundle_path": ""
}
},
"s11": {
"calibration": {
"open": {
"set_name": "",
"bundle_path": ""
},
"short": {
"set_name": "",
"bundle_path": ""
},
"load": {
"set_name": "",
"bundle_path": ""
}
},
"reference": {
"set_name": "",
"bundle_path": ""
}
},
"notch": {
"enabled": true,
"bands_hz": [],
@@ -76,26 +76,22 @@
"port1": {
"name": "port1",
"driver_mode": "mock",
"driver": "h7992",
"radar_port": 1,
"positions": 4,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 17,
"pin_b": 27,
"invert_logic": false
"pin_b": 27
},
"port2": {
"name": "port2",
"driver_mode": "mock",
"driver": "h7992",
"radar_port": 2,
"positions": 4,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 22,
"pin_b": 23,
"invert_logic": false
"pin_b": 23
}
},
"control_button": {
@@ -202,26 +198,6 @@
"bundle_path": ""
}
},
"s11": {
"calibration": {
"open": {
"set_name": "",
"bundle_path": ""
},
"short": {
"set_name": "",
"bundle_path": ""
},
"load": {
"set_name": "",
"bundle_path": ""
}
},
"reference": {
"set_name": "",
"bundle_path": ""
}
},
"notch": {
"enabled": true,
"bands_hz": [],
@@ -1,5 +1,5 @@
{
"_comment": "Replay of the recorded VNA_AlGo tank005 dataset through the full pipeline (no hardware). The replay producer feeds the raw ring; pair it with NEUTRAL preprocess sets (calibration=1, reference=0) so the already-preprocessed recording passes through unchanged. Create them via GUI 'Create neutral sets' (name: neutral_replay) or python -m python_app.scripts.create_neutral_preprocess_sets --config <this file>.",
"_comment": "Replay of the recorded VNA_AlGo tank005 dataset through the full pipeline (no hardware). The replay producer feeds the raw ring; pair it with NEUTRAL preprocess sets (calibration=1, reference=0) so the already-preprocessed recording passes through unchanged. Create them with the GUI button 'Create Neutral S21 Sets' (name: neutral_replay).",
"radar": {
"model": "librevna_multi",
"serial": "206830985532",
@@ -32,26 +32,22 @@
"port1": {
"name": "port1",
"driver_mode": "mock",
"driver": "h7992",
"radar_port": 1,
"positions": 2,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 17,
"pin_b": 27,
"invert_logic": false
"pin_b": 27
},
"port2": {
"name": "port2",
"driver_mode": "mock",
"driver": "h7992",
"radar_port": 2,
"positions": 4,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 22,
"pin_b": 23,
"invert_logic": false
"pin_b": 23
}
},
"control_button": {
@@ -78,14 +74,38 @@
"logger_name": "locator_runtime"
},
"combos": [
{ "input": 0, "output": 0 },
{ "input": 1, "output": 0 },
{ "input": 2, "output": 0 },
{ "input": 3, "output": 0 },
{ "input": 0, "output": 1 },
{ "input": 1, "output": 1 },
{ "input": 2, "output": 1 },
{ "input": 3, "output": 1 }
{
"input": 0,
"output": 0
},
{
"input": 1,
"output": 0
},
{
"input": 2,
"output": 0
},
{
"input": 3,
"output": 0
},
{
"input": 0,
"output": 1
},
{
"input": 1,
"output": 1
},
{
"input": 2,
"output": 1
},
{
"input": 3,
"output": 1
}
]
},
"preprocess": {
@@ -99,14 +119,6 @@
"bundle_path": ""
}
},
"s11": {
"calibration": {
"open": { "set_name": "", "bundle_path": "" },
"short": { "set_name": "", "bundle_path": "" },
"load": { "set_name": "", "bundle_path": "" }
},
"reference": { "set_name": "", "bundle_path": "" }
},
"notch": {
"enabled": false,
"bands_hz": [],
@@ -117,14 +129,44 @@
"gpr": {
"relative_permittivity": 1.0,
"tx_geometry": [
{ "output_pos": 0, "x_m": 0.785, "y_m": 0.0, "z_m": 0.0 },
{ "output_pos": 1, "x_m": -0.785, "y_m": 0.0, "z_m": 0.0 }
{
"output_pos": 0,
"x_m": 0.785,
"y_m": 0.0,
"z_m": 0.0
},
{
"output_pos": 1,
"x_m": -0.785,
"y_m": 0.0,
"z_m": 0.0
}
],
"rx_geometry": [
{ "input_pos": 0, "x_m": -0.42, "y_m": 0.0, "z_m": 0.0 },
{ "input_pos": 1, "x_m": 0.48, "y_m": 0.0, "z_m": 0.0 },
{ "input_pos": 2, "x_m": 0.18, "y_m": 0.0, "z_m": 0.0 },
{ "input_pos": 3, "x_m": -0.12, "y_m": 0.0, "z_m": 0.0 }
{
"input_pos": 0,
"x_m": -0.42,
"y_m": 0.0,
"z_m": 0.0
},
{
"input_pos": 1,
"x_m": 0.48,
"y_m": 0.0,
"z_m": 0.0
},
{
"input_pos": 2,
"x_m": 0.18,
"y_m": 0.0,
"z_m": 0.0
},
{
"input_pos": 3,
"x_m": -0.12,
"y_m": 0.0,
"z_m": 0.0
}
]
},
"rings": {
@@ -57,26 +57,22 @@
"port1": {
"name": "port1",
"driver_mode": "mock",
"driver": "h7992",
"radar_port": 1,
"positions": 2,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 17,
"pin_b": 27,
"invert_logic": false
"pin_b": 27
},
"port2": {
"name": "port2",
"driver_mode": "mock",
"driver": "h7992",
"radar_port": 2,
"positions": 4,
"default_position": 0,
"gpio_chip": "/dev/gpiochip0",
"pin_a": 22,
"pin_b": 23,
"invert_logic": false
"pin_b": 23
}
},
"control_button": {
@@ -148,26 +144,6 @@
"bundle_path": ""
}
},
"s11": {
"calibration": {
"open": {
"set_name": "",
"bundle_path": ""
},
"short": {
"set_name": "",
"bundle_path": ""
},
"load": {
"set_name": "",
"bundle_path": ""
}
},
"reference": {
"set_name": "",
"bundle_path": ""
}
},
"notch": {
"enabled": true,
"bands_hz": [],
@@ -201,7 +177,7 @@
{
"input_pos": 1,
"x_m": 0.485,
"y_m": 0.0,
"y_m": 0.445,
"z_m": 0.0
},
{
@@ -213,7 +189,7 @@
{
"input_pos": 3,
"x_m": 0.185,
"y_m": 0.0,
"y_m": 0.445,
"z_m": 0.0
}
]
@@ -327,7 +303,6 @@
}
},
"data_actions": {
"save_count": 10,
"save_path": "python_app/data/snapshots",
"save_name": "snapshot_simulator"
},