AerospaceNU / AerospaceNU/better-engine-control-software

Implement moving filter on WatchDog

Aperta
#3 0 commenti 0 reazioni 1 assegnatario Rivendicata da @allenyxu2004 Vedi su GitHub
enhancement
Lingua principale
C++
Stelle
5
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Currently, our `FakeWatchDog` implementation will instantly freak out if it gets passed a bad SensorData once.

This might sound good, but it's not useful because it will take time for pressure and temperature readings to transition after a state change, so our WatchDog will probably trip every time we change states.

Implement a storage of past SensorDatas in a new WatchDog class, oldest will be replaced by newest so probably a queue. We will then average/use the median of sensor data readings across all SensorDatas in storage, and use that averaged SensorData to run redlines on.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.