38 lines
1.1 KiB
C++
Executable File
38 lines
1.1 KiB
C++
Executable File
|
|
/*
|
|
File: datamodel.cpp
|
|
Description: This is a C++ source file containing implementation code for a data collection (called model) used for
|
|
the realisation of a climate chamber control algorithm
|
|
Rev: 0.1 - draft
|
|
Created: 20.03.26
|
|
Author: Uwe Jakobeit
|
|
Copyright: Binder GmbH TUT
|
|
Purpose: Configuration data and run-time datasets are provided for a controller simulation
|
|
|
|
Notes: [Any relevant details, such as dependencies, usage examples, or known issues.]
|
|
*/
|
|
|
|
#include "datamodel.h"
|
|
|
|
// initialze data for the control algorithm
|
|
DataModel::DataModel()
|
|
{
|
|
|
|
// uj todo - set defaults, if JSON input fails
|
|
// for now only hard-coded data
|
|
Kennfeld_Ueberhitzung = Kennfeld_Ueberhitzung_Default;
|
|
// In English:
|
|
HeadlineOverheat = HeadlineOverheatDefault;
|
|
|
|
Kennfeld_Entfeuchtung = Kennfeld_Entfeuchtung_Default;
|
|
|
|
Kennfeld_Ueberhitzung = Kennfeld_Ueberhitzung_Default;
|
|
}
|
|
|
|
// provide current process data ( relevant process data for the control algorithm )
|
|
QList<Input_t>* DataModel::getInputs()
|
|
{
|
|
return ∈
|
|
}
|
|
|