diff --git a/ev-dev-tools/src/ev_cli/templates/ld-ev.cpp.j2 b/ev-dev-tools/src/ev_cli/templates/ld-ev.cpp.j2 index 8f827bf2..c270ba97 100644 --- a/ev-dev-tools/src/ev_cli/templates/ld-ev.cpp.j2 +++ b/ev-dev-tools/src/ev_cli/templates/ld-ev.cpp.j2 @@ -97,11 +97,13 @@ std::vector everest_register(const json& connections) { static Everest::MqttProvider mqtt_provider(adapter); {% endif %} static Everest::TelemetryProvider telemetry_provider(adapter); + static Everest::WatchdogSupervisor watchdog_supervisor(adapter); static {{ info.class_name }} module( module_info, {%- if info.enable_external_mqtt %}mqtt_provider, {% endif -%} {%- if info.enable_telemetry %}telemetry_provider, {% endif -%} + watchdog_supervisor, {%- for impl in provides -%} std::move(p_{{ impl.id }}){{ ', ' }} {%- endfor -%} diff --git a/ev-dev-tools/src/ev_cli/templates/ld-ev.hpp.j2 b/ev-dev-tools/src/ev_cli/templates/ld-ev.hpp.j2 index dac58397..a79ced4e 100644 --- a/ev-dev-tools/src/ev_cli/templates/ld-ev.hpp.j2 +++ b/ev-dev-tools/src/ev_cli/templates/ld-ev.hpp.j2 @@ -7,6 +7,7 @@ #include #include +#include #include diff --git a/ev-dev-tools/src/ev_cli/templates/module.hpp.j2 b/ev-dev-tools/src/ev_cli/templates/module.hpp.j2 index 0d076b6c..08a5107c 100644 --- a/ev-dev-tools/src/ev_cli/templates/module.hpp.j2 +++ b/ev-dev-tools/src/ev_cli/templates/module.hpp.j2 @@ -42,6 +42,7 @@ public: {% if info.enable_telemetry %} Everest::TelemetryProvider& telemetry, {% endif %} + Everest::WatchdogSupervisor& watchdog_supervisor, {% for impl in provides %} std::unique_ptr<{{ impl.base_class }}> p_{{ impl.id }}, {% endfor %} @@ -61,6 +62,7 @@ public: {% if info.enable_telemetry %} telemetry(telemetry), {% endif %} + watchdog_supervisor(watchdog_supervisor), {% for impl in provides %} p_{{ impl.id }}(std::move(p_{{ impl.id }})), {% endfor %} @@ -76,6 +78,7 @@ public: {% if info.enable_telemetry %} Everest::TelemetryProvider& telemetry; {% endif %} + Everest::WatchdogSupervisor& watchdog_supervisor; {% for impl in provides %} const std::unique_ptr<{{ impl.base_class }}> p_{{ impl.id }}; {% endfor %}