const (#1062)
This commit is contained in:
parent
8480a9e1ee
commit
dc1e90773b
|
@ -124,14 +124,14 @@ void Pid::setErrorAmplification(float coef) {
|
|||
}
|
||||
|
||||
#if EFI_TUNER_STUDIO
|
||||
void Pid::postState(TunerStudioOutputChannels *tsOutputChannels) {
|
||||
void Pid::postState(TunerStudioOutputChannels *tsOutputChannels) const {
|
||||
postState(tsOutputChannels, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* see https://rusefi.com/wiki/index.php?title=Manual:Debug_fields
|
||||
*/
|
||||
void Pid::postState(TunerStudioOutputChannels *tsOutputChannels, int pMult) {
|
||||
void Pid::postState(TunerStudioOutputChannels *tsOutputChannels, int pMult) const {
|
||||
tsOutputChannels->debugFloatField1 = output;
|
||||
tsOutputChannels->debugFloatField2 = iTerm;
|
||||
tsOutputChannels->debugFloatField3 = getPrevError();
|
||||
|
|
|
@ -60,8 +60,8 @@ public:
|
|||
float getPrevError(void) const;
|
||||
void setErrorAmplification(float coef);
|
||||
#if EFI_TUNER_STUDIO
|
||||
void postState(TunerStudioOutputChannels *tsOutputChannels);
|
||||
void postState(TunerStudioOutputChannels *tsOutputChannels, int pMult);
|
||||
void postState(TunerStudioOutputChannels *tsOutputChannels) const;
|
||||
void postState(TunerStudioOutputChannels *tsOutputChannels, int pMult) const;
|
||||
#endif /* EFI_TUNER_STUDIO */
|
||||
void showPidStatus(Logging *logging, const char*msg) const;
|
||||
void sleep();
|
||||
|
@ -122,8 +122,8 @@ public:
|
|||
|
||||
public:
|
||||
// todo: move this to pid_s one day
|
||||
float_t antiwindupFreq = 0.0f; // = 1/ResetTime
|
||||
float_t derivativeFilterLoss = 0.0f; // = 1/Gain
|
||||
float antiwindupFreq = 0.0f; // = 1/ResetTime
|
||||
float derivativeFilterLoss = 0.0f; // = 1/Gain
|
||||
|
||||
private:
|
||||
float limitOutput(float v) const;
|
||||
|
|
Loading…
Reference in New Issue