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

36 lines
950 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.

/*
* PhaseSpaceEndpoint.hh
*
* Created on: 9 июн. 2020 г.
* Author: LeonidTitov
*/
#ifndef UMLIBRARY_TECHNOLOGICAL_ADAPTER_PHASESPACEENDPOINT_HH_
#define UMLIBRARY_TECHNOLOGICAL_ADAPTER_PHASESPACEENDPOINT_HH_
#include "ControlSystemWrapper.hpp"
#include "../../processing/acs/VectorAsyncInterface.hh"
namespace technological { namespace adapter {
struct OnPhaseSpaceEndpointConnect {
void operator()( vector::IPhaseSpaceValue * endpoint ) {
//endpoint->set( control::PhaseSpaceValue( 0.0f, 0.0f ) );
}
};
struct OnPhaseSpaceEndpointDisconnect {
void operator()( vector::IPhaseSpaceValue * endpoint ) {
endpoint->set( control::PhaseSpaceValue( 0.0f, 0.0f ) );
}
};
typedef EndpointWrapper<vector::IPhaseSpaceValue, vector::IPhaseSpaceValue, OnPhaseSpaceEndpointConnect, OnPhaseSpaceEndpointDisconnect> PhaseSpaceEndpoint;
}}
#endif /* UMLIBRARY_TECHNOLOGICAL_ADAPTER_PHASESPACEENDPOINT_HH_ */