Skip to content

Commit

Permalink
main/config: change lower moisture limit to 0.2
Browse files Browse the repository at this point in the history
- lower limit of 0.3 led to overflows under very moist conditions
  • Loading branch information
s-t-a-n committed Oct 1, 2024
1 parent 75a2a60 commit 7503203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void setup() {

{
// constexpr double moisture_sensor_limits[] = {0.4, 0.6}; // experimentally obtained, low = wet, high = dry
constexpr double moisture_sensor_limits[] = {0.3, 0.7}; // experimentally obtained, low = wet, high = dry
constexpr double moisture_sensor_limits[] = {0.2, 0.7}; // experimentally obtained, low = wet, high = dry
// constexpr double moisture_sensor_limits[] = {0.0, 1.0}; // experimentally obtained, low = wet, high = dry
const auto cfg =
AnalogueInputPeripheral::Config{.input_cfg = HAL::AnalogueInput::Config{.pin = A1, .pull_up = false},
Expand Down

0 comments on commit 7503203

Please sign in to comment.