Skip to content

Commit cc9bafd

Browse files
authored
Added base/ephemeris paths and metadata to LogManifest. (#17)
# Changes - Added optional auxiliary base/ephemeris file paths to log manifest file # Fixes - Fixed incorrect argument parser name in `config_tool` for `gnss_aux` lever arm config
2 parents d30dc09 + df609a5 commit cc9bafd

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

bin/config_tool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ def main():
12491249

12501250
help = 'The secondary (auxiliary) GNSS antenna lever arm (in meters).'
12511251
param_parser.add_parser('gnss_aux', help=help, description=help)
1252-
gnss_parser = apply_param_parser.add_parser('gnss', help=help, description=help)
1252+
gnss_parser = apply_param_parser.add_parser('gnss_aux', help=help, description=help)
12531253
gnss_parser.add_argument('x', type=float, help='The X offset with respect to the vehicle body (in meters).')
12541254
gnss_parser.add_argument('y', type=float, help='The Y offset with respect to the vehicle body (in meters).')
12551255
gnss_parser.add_argument('z', type=float, help='The Z offset with respect to the vehicle body (in meters).')

p1_runner/log_manifest.py

+11-3
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,16 @@ def __init__(self):
2424
self.device_id = None
2525
self.device_type = None
2626
self.device_version = None
27-
self.system_config_path = None
2827
self.sw_version = None
2928

29+
self.system_config_path = None
30+
self.base_path = None
31+
self.ephemeris_path = None
32+
3033
self.channels = []
3134

35+
self.metadata = {}
36+
3237
def to_json(self, pretty=True):
3338
data = copy.deepcopy(self.__dict__)
3439

@@ -76,12 +81,15 @@ def from_json(cls, contents):
7681

7782
result.device_id = data.get('device_id', None)
7883
result.device_type = DeviceType.from_string(data.get('device_type', None))
79-
8084
result.device_version = data.get('device_version', None)
81-
result.system_config_path = data.get('system_config_path', None)
8285
result.sw_version = data.get('sw_version', None)
8386

87+
result.system_config_path = data.get('system_config_path', None)
88+
result.base_path = data.get('base_path', None)
89+
result.ephemeris_path = data.get('ephemeris_path', None)
90+
8491
result.channels = data.get('channels', [])
92+
result.metadata = data.get('metadata', {})
8593

8694
return result
8795

0 commit comments

Comments
 (0)