succd: calcuate change rate for safety interlock directly from adc ringbuffer

This commit is contained in:
zdmx 2024-09-27 23:01:17 +02:00
parent d3391b28ec
commit 9ad6ce7dad
3 changed files with 20 additions and 40 deletions

View file

@ -31,7 +31,6 @@ func main() {
}
d.aboveRough.threshold = float64(flagPressureThresholdRough)
d.aboveHigh.threshold = float64(flagPressureThresholdHigh)
d.lastPressures = newRingbuffer()
if flagFake {
klog.Infof("Starting with fake peripherals")
d.adcPirani = &fakeADC{}