MotorControlModuleSDFM_TMS3.../Projects/EFC_Communication/UMLibrary/technological/adapter/PhaseSpaceToValueConverter.cpp
2024-06-07 11:12:56 +03:00

34 lines
796 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.

/*
* PhaseSpaceToValueConverter.cpp
*
* Created on: 11 авг. 2020 г.
* Author: LeonidTitov
*/
#include "PhaseSpaceToValueConverter.hh"
void technological::adapter::PhaseSpaceToValueConverter::set( TypeInput input ) {
interface->set( input.value );
}
technological::adapter::PhaseSpaceToValueConverter::TypeOutput technological::adapter::PhaseSpaceToValueConverter::get() const {
return TypeOutput( value, 0.0f );
}
void technological::adapter::PhaseSpaceToValueConverter::set_output(
SetInterface * set_interface ) {
interface = set_interface;
}
void technological::adapter::PhaseSpaceToValueConverter::reset() {
}
technological::adapter::PhaseSpaceToValueConverter::PhaseSpaceToValueConverter( systemic::IValue<float> & value ) : value(value) {}