Skip to content
Snippets Groups Projects
Commit 121b2448 authored by Stefan's avatar Stefan
Browse files

add noval variable to cc downstream

parent 8506290a
No related branches found
No related tags found
1 merge request!1Feature/control center
......@@ -39,13 +39,13 @@ public class ControlCenterDownstreamInputGeneratorExtension extends
// get the value depending on the logical signal data type
if(logicalSignal.getVariableType() instanceof TDouble) {
return "af3_cc_get_double(\"" + modelElement.getName() + "\" , " + "&" +
targetVariable + " );\n";
targetVariable + ", &noval_" + targetVariable + " );\n";
} else if(logicalSignal.getVariableType() instanceof TInt) {
return "af3_cc_get_int(\"" + modelElement.getName() + "\" , " + "&" + targetVariable +
" );\n";
", &noval_" + targetVariable + " );\n";
} else if(logicalSignal.getVariableType() instanceof TBool) {
return "af3_cc_get_bool(\"" + modelElement.getName() + "\" , " + "&" + targetVariable +
" );\n";
", &noval_" + targetVariable + " );\n";
} else {
return "FIXME(\"Data type " + logicalSignal.getVariableType() + " of Port " +
portInputName + " not supported for control centert.\");\n";
......
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