ChimeraTK-ApplicationCore
04.01.00
AverageCurrent.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
16
namespace
ctk
=
ChimeraTK
;
17
19
class
AverageCurrent
:
public
ctk::ApplicationModule
{
20
using
ctk::ApplicationModule::ApplicationModule
;
21
22
// Take the heaterCurrent from the Controller module as an input
24
ctk::ScalarPushInput<float>
current{
this
,
"../Controller/heatingCurrent"
,
"mA"
,
"Actuator output of the controller"
};
26
27
ctk::ScalarOutput<float>
currentAveraged{
this
,
"heatingCurrentAveraged"
,
"mA"
,
"Averaged heating current"
};
28
29
void
mainLoop()
override
;
30
};
AverageCurrent
[Snippet: Class Definition]
Definition:
AverageCurrent.h:19
ChimeraTK::ScalarPushInput< float >
ChimeraTK::ApplicationModule
Definition:
ApplicationModule.h:24
ChimeraTK::ApplicationModule::ApplicationModule
ApplicationModule()=default
Default constructor: Allows late initialisation of modules (e.g.
ChimeraTK
InvalidityTracer application module.
Definition:
spec_dataValidityPropagation.dox:2
ChimeraTK::ScalarOutput< float >
sources
ChimeraTK-ApplicationCore
example
include
AverageCurrent.h
Generated by
1.8.17