add get functions

This commit is contained in:
Marcus 2021-01-06 21:19:39 +01:00
parent 6fded78bc5
commit 89c3c44754
2 changed files with 52 additions and 0 deletions

View File

@ -191,3 +191,44 @@ void PID::setManualPower( double manual_op ) {
void PID::setMaxInterval( int max_interval ) {
m_max_interval = max_interval;
}
double PID::getPv() {
return(m_pv);
}
double PID::getSp() {
return(m_setpoint);
}
double PID::getPb() {
return(m_prop_band);
}
double PID::getTi() {
return(m_t_integral);
}
double PID::getTd() {
return(m_t_derivative);
}
double PID::getInitialInt() {
return(m_integral_default);
}
double PID::getDSmooth() {
return(m_smooth_factor);
}
unsigned char PID::getAuto() {
return(m_mode_auto);
}
double PID::getManualPower() {
return(m_manual_op);
}
int PID::getMaxInterval() {
return(m_max_interval);
}

View File

@ -65,6 +65,17 @@ public:
void setManualPower( double manual_op );
void setMaxInterval( int max_interval );
double getPv();
double getSp();
double getPb();
double getTi();
double getTd();
double getInitialInt();
double getDSmooth();
unsigned char getAuto();
double getManualPower();
int getMaxInterval();
private:
double m_pv;
double m_setpoint;