pub struct RefillConfig {Show 13 fields
pub active: bool,
pub execute: bool,
pub initial_wait_interval: u64,
pub check_interval: u64,
pub max_refill_count_24h: u64,
pub max_refill_volume_24h: f64,
pub max_refill_count_hour: u64,
pub max_refill_volume_hour: f64,
pub min_interval_last_refill: u64,
pub max_duration_since_last_refill: u64,
pub refill_pump_flow: f64,
pub max_refill_volume: f64,
pub additional_refill_volume: f64,
}Expand description
Holds the configuration data for the refill control. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation.
Fields§
§active: boolcontrol will only be active when the flag is set to true
execute: boolindicates if the thread shall be started or not
initial_wait_interval: u64time interval in seconds which need to pass after initialization of the application before refill control is becoming active
check_interval: u64interval for the main control in seconds
max_refill_count_24h: u64the maximum number of permitted refill operations within the last 24h
- If this number is exceeded, then the refill control will not further refill even if the water level sensor signal value is low.
max_refill_volume_24h: f64maximum permitted refill volume within the last 24h
- If this number is exceeded, then the refill control will not further refill even if the water level sensor signal value is low.
max_refill_count_hour: u64the maximum number of permitted refill operations within the last hour
- If this number is exceeded, then the refill control will not further refill even if the water level sensor signal value is low.
max_refill_volume_hour: f64maximum permitted refill volume within the last hour
- If this number is exceeded, then the refill control will not further refill even if the water level sensor signal value is low.
min_interval_last_refill: u64minimum time which has to pass after a refill operation before a further refill operation is started
max_duration_since_last_refill: u64time interval in seconds which need to pass before the application recognizes a potential tank level switch fault
refill_pump_flow: f64flow of the refill pump in liters / second
max_refill_volume: f64maximum permitted refill volume in one refill operation
additional_refill_volume: f64Refill volume which is added to the tank in a refill operation after the application recognizes tank level position high Background: This volume shall avoid too frequent refill operations. Too high values may lead to unstable water level. It is recommended to calibrate a value, which is a fraction of max_refill_volume.
Trait Implementations§
Source§impl Clone for RefillConfig
impl Clone for RefillConfig
Source§fn clone(&self) -> RefillConfig
fn clone(&self) -> RefillConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more