Commit 7eb5c2a3 authored by Martin Eisenmann's avatar Martin Eisenmann

Fixed MotorControl velocity input/output

Signed-off-by: Martin Eisenmann's avatarEisenmann <eisenmann@fortiss.org>
parent 6f21234b
MotorControlGeneratorExtensionBase.java 6baa3681d57d549c0ba60cef1746a5dbbbadc9b7 YELLOW MotorControlGeneratorExtensionBase.java 6baa3681d57d549c0ba60cef1746a5dbbbadc9b7 YELLOW
MotorControlInputGeneratorExtension.java 5a37e7265ad087aa421d36bf2a5094156ab36d17 YELLOW MotorControlInputGeneratorExtension.java fe16866bbaad204ec3c61e9b35d2ae4589bc9eb4 YELLOW
MotorControlOutputGeneratorExtension.java a78f5c231fd55c4d1b4285a4d5c9707e845c0de1 YELLOW MotorControlOutputGeneratorExtension.java 1f9de6223e21e4c129d94381e892fcbee03113ae YELLOW
...@@ -35,7 +35,7 @@ public class MotorControlInputGeneratorExtension ...@@ -35,7 +35,7 @@ public class MotorControlInputGeneratorExtension
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @Override
public String getReadCode(InputPort logicalSignal, String targetVariable) { public String getReadCode(InputPort logicalSignal, String targetVariable) {
return targetVariable + " = getVelocity();\n"; return targetVariable + " = 0;\n";
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
......
...@@ -36,7 +36,7 @@ public class MotorControlOutputGeneratorExtension ...@@ -36,7 +36,7 @@ public class MotorControlOutputGeneratorExtension
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @Override
public String getWriteCode(OutputPort logicalSignal, String value) { public String getWriteCode(OutputPort logicalSignal, String value) {
return "setVelocity(" + value + ");\n"; return "set_velocity(" + value + ");\n";
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
......
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