ESPHome  2024.10.2
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 84 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 333 of file pid_autotuner.cpp.

◆ has_enough_data()

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

Definition at line 327 of file pid_autotuner.cpp.

◆ is_amplitude_convergent()

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

Definition at line 344 of file pid_autotuner.cpp.

◆ update()

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

Definition at line 297 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 97 of file pid_autotuner.h.

◆ phase_max

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

Definition at line 94 of file pid_autotuner.h.

◆ phase_maxs

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

Definition at line 96 of file pid_autotuner.h.

◆ phase_min

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

Definition at line 93 of file pid_autotuner.h.

◆ phase_mins

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

Definition at line 95 of file pid_autotuner.h.


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