only: docs

This commit is contained in:
rusefillc 2024-05-12 10:56:35 -04:00
parent 5837abb4f1
commit 22f770ddbc
1 changed files with 5 additions and 4 deletions

View File

@ -67,6 +67,7 @@ void DynoView::update(vssSrc src) {
* deltaTime in uS
*/
void DynoView::updateAcceleration(efitimeus_t deltaTime, float deltaSpeed) {
// todo: explain why do we compare float with zero without threshold?
if (deltaSpeed != 0.0) {
acceleration = ((deltaSpeed / 3.6) / ((uint32_t)deltaTime / US_PER_SECOND_F));
if (direction) {