MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/processing/acs/ValueView.cpp

39 lines
655 B
C++
Raw Normal View History

2024-06-07 11:12:56 +03:00
/*
* ValueView.cpp
*
* Created on: 2 дек. 2023 г.
* Author: titov
*/
#include "ValueView.hh"
void processing::acs::ValueView::set( TypeInput point ) {
value = point;
output->set( point );
}
processing::acs::ValueView::TypeOutput processing::acs::ValueView::get() const {
//todo: Реализовать либо ошибку, либо еще что.
return 0.0f;
}
void processing::acs::ValueView::set_output( SetInterface * new_output ) {
output = new_output;
}
void processing::acs::ValueView::reset() {
value = NAN;
}
processing::acs::ValueView::ValueView() :
value(NAN), output(nullptr) {}