Skip to content

Commit

Permalink
FEATURE: Move prop next to TOW max, add GNSS connection
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Jun 13, 2024
1 parent c5dcf10 commit 1a50c65
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions MethodicConfigurator/middleware_template_overview.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ def __init__(self, components_data: dict):
self.fc_manufacturer = components_data.get('Flight Controller', {}).get('Product', {}).get('Manufacturer', '')
self.fc_model = components_data.get('Flight Controller', {}).get('Product', {}).get('Model', '')
self.tow_max_kg = components_data.get('Frame', {}).get('Specifications', {}).get('TOW max Kg', '')
self.prop_diameter_inches = components_data.get('Propellers', {}).get('Specifications', {}).get('Diameter_inches', '')
self.rc_protocol = components_data.get('RC Receiver', {}).get('FC Connection', {}).get('Protocol', '')
self.telemetry_model = components_data.get('Telemetry', {}).get('Product', {}).get('Model', '')
self.esc_protocol = components_data.get('ESC', {}).get('FC Connection', {}).get('Protocol', '')
self.prop_diameter_inches = components_data.get('Propellers', {}).get('Specifications', {}).get('Diameter_inches', '')
self.gnss_model = components_data.get('GNSS receiver', {}).get('Product', {}).get('Model', '')
self.gnss_connection = components_data.get('GNSS receiver', {}).get('FC Connection', {}).get('Type', '')

@staticmethod
def columns():
Expand All @@ -35,11 +36,13 @@ def columns():
"FC\nManufacturer",
"FC\nModel",
"TOW Max\n[KG]",
"Prop Diameter\n[inches]",
"RC\nProtocol",
"Telemetry\nModel",
"ESC\nProtocol",
"Prop Diameter\n[inches]",
"GNSS\nModel")
"GNSS\nModel",
"GNSS\nConnection",
)

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

0 comments on commit 1a50c65

Please sign in to comment.