Skip to content

Commit 1a50c65

Browse files
committed
FEATURE: Move prop next to TOW max, add GNSS connection
1 parent c5dcf10 commit 1a50c65

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

MethodicConfigurator/middleware_template_overview.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ def __init__(self, components_data: dict):
2222
self.fc_manufacturer = components_data.get('Flight Controller', {}).get('Product', {}).get('Manufacturer', '')
2323
self.fc_model = components_data.get('Flight Controller', {}).get('Product', {}).get('Model', '')
2424
self.tow_max_kg = components_data.get('Frame', {}).get('Specifications', {}).get('TOW max Kg', '')
25+
self.prop_diameter_inches = components_data.get('Propellers', {}).get('Specifications', {}).get('Diameter_inches', '')
2526
self.rc_protocol = components_data.get('RC Receiver', {}).get('FC Connection', {}).get('Protocol', '')
2627
self.telemetry_model = components_data.get('Telemetry', {}).get('Product', {}).get('Model', '')
2728
self.esc_protocol = components_data.get('ESC', {}).get('FC Connection', {}).get('Protocol', '')
28-
self.prop_diameter_inches = components_data.get('Propellers', {}).get('Specifications', {}).get('Diameter_inches', '')
2929
self.gnss_model = components_data.get('GNSS receiver', {}).get('Product', {}).get('Model', '')
30+
self.gnss_connection = components_data.get('GNSS receiver', {}).get('FC Connection', {}).get('Type', '')
3031

3132
@staticmethod
3233
def columns():
@@ -35,11 +36,13 @@ def columns():
3536
"FC\nManufacturer",
3637
"FC\nModel",
3738
"TOW Max\n[KG]",
39+
"Prop Diameter\n[inches]",
3840
"RC\nProtocol",
3941
"Telemetry\nModel",
4042
"ESC\nProtocol",
41-
"Prop Diameter\n[inches]",
42-
"GNSS\nModel")
43+
"GNSS\nModel",
44+
"GNSS\nConnection",
45+
)
4346

4447
def attributes(self):
4548
return self.__dict__.keys()

0 commit comments

Comments
 (0)