MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/processing/acs/PhaseSpaceView.cpp
2024-06-07 11:12:56 +03:00

45 lines
853 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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