Part 1 of V3 extraction in preperation of v4 and v3 software merge
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::{
|
||||
config::{PlantControllerConfig, TankConfig},
|
||||
plant_hal::PlantCtrlBoard,
|
||||
};
|
||||
use crate::plant_hal::{BoardInteraction, HAL};
|
||||
use crate::config::{PlantControllerConfig, TankConfig};
|
||||
|
||||
const OPEN_TANK_VOLTAGE: f32 = 3.0;
|
||||
pub const WATER_FROZEN_THRESH: f32 = 4.0;
|
||||
@@ -158,7 +156,7 @@ impl TankState {
|
||||
}
|
||||
|
||||
pub fn determine_tank_state(
|
||||
board: &mut std::sync::MutexGuard<'_, PlantCtrlBoard<'_>>,
|
||||
board: &mut std::sync::MutexGuard<'_, HAL<'_>>,
|
||||
config: &PlantControllerConfig,
|
||||
) -> TankState {
|
||||
if config.tank.tank_sensor_enabled {
|
||||
|
||||
Reference in New Issue
Block a user