This commit is contained in:
rusefi 2017-05-28 22:10:35 -04:00
parent 0a65aea16f
commit 28f6077c5f
2 changed files with 6 additions and 0 deletions

View File

@ -118,6 +118,11 @@ void Pid::postState(TunerStudioOutputChannels *tsOutputChannels) {
}
#endif
void Pid::sleep() {
int period = maxI(10, 10);
chThdSleepMilliseconds(period);
}
void Pid::showPidStatus(Logging *logging, const char*msg, int dTime) {
// todo: dTime should be taken from pid_s
scheduleMsg(logging, "%s o=%f P=%.5f I=%.5f D=%.5f dT=%d",

View File

@ -43,6 +43,7 @@ public:
float iTerm;
float dTerm; // we are remembering this only for debugging purposes
void showPidStatus(Logging *logging, const char*msg, int dTime);
void sleep();
private:
pid_s *pid;