Skip to content
Snippets Groups Projects
Commit a39a1c51 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

enable the now allowed feeding of a consuming variable to the control system

parent edc8145d
No related branches found
No related tags found
No related merge requests found
......@@ -108,9 +108,10 @@ class MyApp : public ctk::Application {
simulator.actuator.consumeFromDevice("Dummy0","/MyModule/Variable", ctk::UpdateMode::poll);
simulator.actuator.addTrigger(controlLoop.actuator);
//simulator.actuator.feedToControlSystem("MyLocation/actuatorSimulator"); // not allowed, since simulator.actuator consuming
simulator.actuator.feedToControlSystem("MyLocation/actuatorSimulator");
feedDeviceRegisterToControlSystem<double>("Dummy0","/MyModule/Variable", "MyLocation/actuatorSimulator", controlLoop.actuator);
// this will create an independent variable network,thus also another accessor to the device
feedDeviceRegisterToControlSystem<double>("Dummy0","/MyModule/Variable", "MyLocation/actuatorSimulator_direct", controlLoop.actuator);
simulator.readback.connectTo(controlLoop.readback);
simulator.readback.feedToControlSystem("MyLocation/readback");
......
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