Skip to content
Snippets Groups Projects
Commit 7eb5c2a3 authored by Martin Eisenmann's avatar Martin Eisenmann
Browse files

Fixed MotorControl velocity input/output


Signed-off-by: default avatarEisenmann <eisenmann@fortiss.org>
parent 6f21234b
No related branches found
No related tags found
No related merge requests found
MotorControlGeneratorExtensionBase.java 6baa3681d57d549c0ba60cef1746a5dbbbadc9b7 YELLOW
MotorControlInputGeneratorExtension.java 5a37e7265ad087aa421d36bf2a5094156ab36d17 YELLOW
MotorControlOutputGeneratorExtension.java a78f5c231fd55c4d1b4285a4d5c9707e845c0de1 YELLOW
MotorControlInputGeneratorExtension.java fe16866bbaad204ec3c61e9b35d2ae4589bc9eb4 YELLOW
MotorControlOutputGeneratorExtension.java 1f9de6223e21e4c129d94381e892fcbee03113ae YELLOW
......@@ -35,7 +35,7 @@ public class MotorControlInputGeneratorExtension
/** {@inheritDoc} */
@Override
public String getReadCode(InputPort logicalSignal, String targetVariable) {
return targetVariable + " = getVelocity();\n";
return targetVariable + " = 0;\n";
}
/** {@inheritDoc} */
......
......@@ -36,7 +36,7 @@ public class MotorControlOutputGeneratorExtension
/** {@inheritDoc} */
@Override
public String getWriteCode(OutputPort logicalSignal, String value) {
return "setVelocity(" + value + ");\n";
return "set_velocity(" + value + ");\n";
}
/** {@inheritDoc} */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment