Added brake light optimizations

This commit is contained in:
CommanderRedYT
2022-12-18 02:31:41 +01:00
parent b61dfcf53d
commit 52ff7acd02
3 changed files with 12 additions and 2 deletions

View File

@ -265,7 +265,7 @@ void updateAccumulators()
// ESP_LOGI("utils.cpp", "m_s2: %f", m_s2);
avgAccel = m_s2;
avgAccel = avgAccel * 0.3f + m_s2 * 0.7f;
lastAvgSpeedKmh = avgSpeedKmh;
lastAvgSpeedKmhTs = espchrono::millis_clock::now();