ESPHome  2022.9.1
Public Member Functions | Data Fields
esphome::pid::PIDAutotuner::OscillationAmplitudeDetector Struct Reference

#include <pid_autotuner.h>

Public Member Functions

void update (float error, RelayFunction::RelayFunctionState relay_state)
 
bool has_enough_data () const
 
float get_mean_oscillation_amplitude () const
 
bool is_amplitude_convergent () const
 

Data Fields

float phase_min = NAN
 
float phase_max = NAN
 
std::vector< float > phase_mins
 
std::vector< float > phase_maxs
 
RelayFunction::RelayFunctionState last_relay_state = RelayFunction::RELAY_FUNCTION_INIT
 

Detailed Description

Definition at line 80 of file pid_autotuner.h.

Member Function Documentation

◆ get_mean_oscillation_amplitude()

float esphome::pid::PIDAutotuner::OscillationAmplitudeDetector::get_mean_oscillation_amplitude ( ) const

Definition at line 330 of file pid_autotuner.cpp.

◆ has_enough_data()

bool esphome::pid::PIDAutotuner::OscillationAmplitudeDetector::has_enough_data ( ) const

Definition at line 324 of file pid_autotuner.cpp.

◆ is_amplitude_convergent()

bool esphome::pid::PIDAutotuner::OscillationAmplitudeDetector::is_amplitude_convergent ( ) const

Definition at line 341 of file pid_autotuner.cpp.

◆ update()

void esphome::pid::PIDAutotuner::OscillationAmplitudeDetector::update ( float  error,
RelayFunction::RelayFunctionState  relay_state 
)

Definition at line 292 of file pid_autotuner.cpp.

Field Documentation

◆ last_relay_state

RelayFunction::RelayFunctionState esphome::pid::PIDAutotuner::OscillationAmplitudeDetector::last_relay_state = RelayFunction::RELAY_FUNCTION_INIT

Definition at line 93 of file pid_autotuner.h.

◆ phase_max

float esphome::pid::PIDAutotuner::OscillationAmplitudeDetector::phase_max = NAN

Definition at line 90 of file pid_autotuner.h.

◆ phase_maxs

std::vector<float> esphome::pid::PIDAutotuner::OscillationAmplitudeDetector::phase_maxs

Definition at line 92 of file pid_autotuner.h.

◆ phase_min

float esphome::pid::PIDAutotuner::OscillationAmplitudeDetector::phase_min = NAN

Definition at line 89 of file pid_autotuner.h.

◆ phase_mins

std::vector<float> esphome::pid::PIDAutotuner::OscillationAmplitudeDetector::phase_mins

Definition at line 91 of file pid_autotuner.h.


The documentation for this struct was generated from the following files: