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

52 lines
1.3 KiB
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.

/*
* ForceControllerAutotuningFeatureEstimate.hh
*
* Created on: 4 мая 2022 г.
* Author: titov
*/
#ifndef UMLIBRARY_PROCESSING_FORCECONTROLLERAUTOTUNINGFEATUREESTIMATE_HH_
#define UMLIBRARY_PROCESSING_FORCECONTROLLERAUTOTUNINGFEATUREESTIMATE_HH_
#include "../systemic/ISignal.hh"
#include "../systemic/IProcess.hh"
#include "../control/regulator/ForceController.hh"
namespace processing {
//!Модуль оценки критериев автонастройки алгоритма набора и поддержания усилия.
class ForceControllerAutotuningFeatureEstimate : public systemic::IProcess {
systemic::ISignal & force;
systemic::ISignal & dforce;
const control::regulator::ForceController & fc;
float aggregated_dynamic_error;
float dynamic_error;
float _Ts;
public:
ForceControllerAutotuningFeatureEstimate( systemic::ISignal & force, systemic::ISignal & dforce,
const control::regulator::ForceController & fc );
const float & getDynamicError() const;
const float & getAggregatedDynamicError() const;
const float & getEndMismatch() const;
void reset();
void process();
void setSampleTime( float ts_in_second );
};
}
#endif /* UMLIBRARY_PROCESSING_FORCECONTROLLERAUTOTUNINGFEATUREESTIMATE_HH_ */