Part 1 of V3 extraction in preperation of v4 and v3 software merge

This commit is contained in:
2025-06-08 15:59:24 +02:00
parent 3fe9aaeb6f
commit 38f4ada433
5 changed files with 634 additions and 488 deletions

View File

@@ -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 {