File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -1249,7 +1249,7 @@ def main():
1249
1249
1250
1250
help = 'The secondary (auxiliary) GNSS antenna lever arm (in meters).'
1251
1251
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 )
1253
1253
gnss_parser .add_argument ('x' , type = float , help = 'The X offset with respect to the vehicle body (in meters).' )
1254
1254
gnss_parser .add_argument ('y' , type = float , help = 'The Y offset with respect to the vehicle body (in meters).' )
1255
1255
gnss_parser .add_argument ('z' , type = float , help = 'The Z offset with respect to the vehicle body (in meters).' )
Original file line number Diff line number Diff line change @@ -24,11 +24,16 @@ def __init__(self):
24
24
self .device_id = None
25
25
self .device_type = None
26
26
self .device_version = None
27
- self .system_config_path = None
28
27
self .sw_version = None
29
28
29
+ self .system_config_path = None
30
+ self .base_path = None
31
+ self .ephemeris_path = None
32
+
30
33
self .channels = []
31
34
35
+ self .metadata = {}
36
+
32
37
def to_json (self , pretty = True ):
33
38
data = copy .deepcopy (self .__dict__ )
34
39
@@ -76,12 +81,15 @@ def from_json(cls, contents):
76
81
77
82
result .device_id = data .get ('device_id' , None )
78
83
result .device_type = DeviceType .from_string (data .get ('device_type' , None ))
79
-
80
84
result .device_version = data .get ('device_version' , None )
81
- result .system_config_path = data .get ('system_config_path' , None )
82
85
result .sw_version = data .get ('sw_version' , None )
83
86
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
+
84
91
result .channels = data .get ('channels' , [])
92
+ result .metadata = data .get ('metadata' , {})
85
93
86
94
return result
87
95
You can’t perform that action at this time.
0 commit comments