52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
/*
|
|
* 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_ */
|