AerospaceNU / AerospaceNU/better-engine-control-software

Implement moving filter on WatchDog

オープン
#3 コメント 0 件 リアクション 0 件 担当者 1 名 @allenyxu2004 が担当を希望しています GitHub で見る
enhancement
主要言語
C++
スター
5
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。