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

53 lines
947 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.

/*
* ValueOverride.hh
*
* Created on: 2 дек. 2023 г.
* Author: titov
*/
#ifndef UMLIBRARY_PROCESSING_ACS_VALUEOVERRIDE_HH_
#define UMLIBRARY_PROCESSING_ACS_VALUEOVERRIDE_HH_
#include "ControlSystemInterface.hh"
#include "../../systemic/IStatus.hh"
namespace processing { namespace acs {
//!
class ValueOverride : public ValueToValueUnitInterface {
public:
void set( TypeInput );
TypeOutput get() const;
void set_output( SetInterface * );
void reset();
//!Значения, которыми будет перезаписана команда управления.
struct Setting {
float value;
bool isValid();
};
void configure( Setting & config );
ValueOverride( systemic::IStatus & control_override );
private:
systemic::IStatus & control_override;
SetInterface * output;
float value;
};
}}
#endif /* UMLIBRARY_PROCESSING_ACS_VALUEOVERRIDE_HH_ */