Commit d95fcead authored by Gauthier Quesnel's avatar Gauthier Quesnel
Browse files

gui: remove unused min/max attributs in plot_output

parent 5ec1ff96
......@@ -240,8 +240,6 @@ struct plot_output
small_string<24u> name;
double tl = 0.0;
double time_step = 0.1;
float min = -1.f;
float max = +1.f;
};
struct file_output
......
......@@ -40,13 +40,9 @@ plot_output::operator()(const irt::observer& obs,
xs.reserve(4096u);
ys.reserve(4096u);
tl = t;
min = -1.f;
max = +1.f;
break;
case irt::observer::status::run: {
const float value = static_cast<float>(obs.msg[0]);
min = std::min(min, value);
max = std::max(max, value);
for (auto to_fill = tl; to_fill < t; to_fill += time_step) {
ys.emplace_back(value);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment