Skip to content

Commit 2f53c0f

Browse files
authored
Add MCU diagnostic category if not A200 (#183)
1 parent 5cf40c0 commit 2f53c0f

File tree

1 file changed

+15
-0
lines changed
  • clearpath_generator_common/clearpath_generator_common/param

1 file changed

+15
-0
lines changed

clearpath_generator_common/clearpath_generator_common/param/platform.py

+15
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,21 @@ def __init__(self,
221221
def generate_parameters(self, use_sim_time: bool = False) -> None:
222222
super().generate_parameters(use_sim_time)
223223

224+
# Add MCU diagnostic category for all platforms except A200
225+
if self.clearpath_config.get_platform_model() != Platform.A200:
226+
self.param_file.update(
227+
{self.DIAGNOSTIC_AGGREGATOR_NODE: {
228+
'platform': {
229+
'analyzers': {
230+
'mcu': {
231+
'type': 'diagnostic_aggregator/GenericAnalyzer',
232+
'path': 'MCU',
233+
'expected': [
234+
'clearpath_diagnostic_updater: MCU Firmware Version',
235+
'clearpath_diagnostic_updater: MCU Status'
236+
],
237+
'contains': ['MCU']}}}}})
238+
224239
sensor_analyzers = {}
225240

226241
# List all topics to be monitored from each launched sensor

0 commit comments

Comments
 (0)