AerospaceNU / AerospaceNU/better-engine-control-software

Implement moving filter on WatchDog

Ouverte
#3 0 commentaires 0 réactions 1 personne assignée Réclamée par @allenyxu2004 Voir sur GitHub
enhancement
Langage dominant
C++
Étoiles
5
Forks
2
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.