Skip to content

Commit

Permalink
Even without the limits class, gcc just refuses to dynamicaly create …
Browse files Browse the repository at this point in the history
…multiple ESC instances
  • Loading branch information
amilcarlucas committed Feb 17, 2022
1 parent 7c45aef commit 9dd8487
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions mavros_extras/src/plugins/esc_telemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,13 @@ struct Limits {
}
};

class ESCDiag //: public diagnostic_updater::DiagnosticTask
class ESCDiag : public diagnostic_updater::DiagnosticTask
{
public:
ESCDiag(const std::string& name, const Limits& lim_):
//diagnostic_updater::DiagnosticTask(name),
lim(lim_)
ESCDiag(const std::string& name):
diagnostic_updater::DiagnosticTask(name)
{}

const Limits& lim;
};

/**
Expand Down Expand Up @@ -251,7 +249,7 @@ class ESCTelemetryPlugin : public plugin::PluginBase
}
ROS_INFO("%d ESCs detected", _esc_count);
for (uint i = 0; i < _esc_count; ++i) {
v.emplace_back(utils::format("ESC%u", i), *lim);
v.emplace_back(utils::format("ESC%u", i));
}
}

Expand Down

0 comments on commit 9dd8487

Please sign in to comment.