ChimeraTK-ApplicationCore 04.06.00
Loading...
Searching...
No Matches
Controller.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Deutsches Elektronen-Synchrotron DESY, MSK, ChimeraTK Project <chimeratk-support@desy.de>
2// SPDX-License-Identifier: LGPL-3.0-or-later
3#pragma once
4
5/*
6 * This example is explained as part of the \ref conceptualOverview. Please refere there for step-by-step explanations.
7 * Reading the full example might not be a good starting point for learning ApplicationCore as it can be overwelming
8 * and lacks important background information.
9 *
10 * Please ignore all comments of the format "//! [some name]", those are used for Doxygen to include code snippets in
11 * the documentation pages.
12 */
13
14#include <ChimeraTK/ApplicationCore/ApplicationCore.h>
15
16namespace ctk = ChimeraTK;
17
20 using ctk::ApplicationModule::ApplicationModule;
21
22 ctk::ScalarPollInput<float> temperatureSetpoint{
23 this, "temperatureSetpoint", "degC", "Setpoint for the temperature controller"};
24 ctk::ScalarPushInput<float> temperatureReadback{
25 this, "temperatureReadback", "degC", "Actual temperature used as controller input"};
26 ctk::ScalarOutput<float> heatingCurrent{this, "heatingCurrent", "mA", "Actuator output of the controller"};
27
28 void mainLoop() override;
29};
Convenience class for input scalar accessors with UpdateMode::push.
[Snippet: Class Definition]
Definition Controller.h:19
InvalidityTracer application module.
Convenience class for output scalar accessors (always UpdateMode::push)
Convenience class for input scalar accessors with UpdateMode::poll.