Compare commits
3 Commits
11eb8713bf
...
b0f8bcc9da
| Author | SHA1 | Date | |
|---|---|---|---|
| b0f8bcc9da | |||
| 103859120c | |||
| 403517fdb4 |
3
Software/MainBoard/rust/TODO
Normal file
3
Software/MainBoard/rust/TODO
Normal file
@@ -0,0 +1,3 @@
|
||||
One Wire does not seem to work.
|
||||
Flow Sensor does not seem to work.
|
||||
PlantProfiles with a dry out phase needs to be implemented + Memory for this
|
||||
@@ -59,6 +59,9 @@ impl<'a> TankSensor<'a> {
|
||||
|
||||
pcnt1.set_high_limit(Some(i16::MAX))?;
|
||||
info!("tank: pcnt high limit ok");
|
||||
// Reject pulses shorter than ~12.8 µs (1023 APB cycles @ 80 MHz) to suppress EMI noise
|
||||
// on the sensor cable. Real flow pulses are in the millisecond range.
|
||||
pcnt1.set_filter(Some(1023)).unwrap();
|
||||
|
||||
let ch0 = &pcnt1.channel0;
|
||||
ch0.set_edge_signal(flow_sensor.peripheral_input());
|
||||
|
||||
Reference in New Issue
Block a user