Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gauthier Quesnel
irritator
Commits
d95fcead
Commit
d95fcead
authored
Apr 02, 2021
by
Gauthier Quesnel
Browse files
gui: remove unused min/max attributs in plot_output
parent
5ec1ff96
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/gui/node-editor.hpp
View file @
d95fcead
...
@@ -240,8 +240,6 @@ struct plot_output
...
@@ -240,8 +240,6 @@ struct plot_output
small_string
<
24u
>
name
;
small_string
<
24u
>
name
;
double
tl
=
0.0
;
double
tl
=
0.0
;
double
time_step
=
0.1
;
double
time_step
=
0.1
;
float
min
=
-
1.
f
;
float
max
=
+
1.
f
;
};
};
struct
file_output
struct
file_output
...
...
app/gui/simulation-editor.cpp
View file @
d95fcead
...
@@ -40,13 +40,9 @@ plot_output::operator()(const irt::observer& obs,
...
@@ -40,13 +40,9 @@ plot_output::operator()(const irt::observer& obs,
xs
.
reserve
(
4096u
);
xs
.
reserve
(
4096u
);
ys
.
reserve
(
4096u
);
ys
.
reserve
(
4096u
);
tl
=
t
;
tl
=
t
;
min
=
-
1.
f
;
max
=
+
1.
f
;
break
;
break
;
case
irt
::
observer
::
status
::
run
:
{
case
irt
::
observer
::
status
::
run
:
{
const
float
value
=
static_cast
<
float
>
(
obs
.
msg
[
0
]);
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
)
{
for
(
auto
to_fill
=
tl
;
to_fill
<
t
;
to_fill
+=
time_step
)
{
ys
.
emplace_back
(
value
);
ys
.
emplace_back
(
value
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment