AerospaceNU / AerospaceNU/better-engine-control-software

Implement moving filter on WatchDog

未關閉
#3 0 則留言 0 個 reaction 已指派 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 摘要。