Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
API
Commits
be60ca55
Commit
be60ca55
authored
May 14, 2018
by
Tobias Meuser
Browse files
Corrected wrong index function
parent
a1226c51
Changes
1
Show whitespace changes
Inline
Side-by-side
src/de/tudarmstadt/maki/simonstrator/api/component/sensor/environment/data/jam/VectoralJamProperty.java
View file @
be60ca55
...
...
@@ -131,7 +131,7 @@ public class VectoralJamProperty extends NumericVectoralProperty {
@Override
public
int
getIndexForValue
(
Object
pValue
)
{
if
(
pValue
instanceof
Number
)
{
return
(
int
)
(((
Number
)
pValue
).
doubleValue
()
*
SCALING
);
return
(
int
)
(((
Number
)
pValue
).
doubleValue
()
/
SCALING
);
}
throw
new
AssertionError
(
"Unknown value!"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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