only: docs
This commit is contained in:
parent
5837abb4f1
commit
22f770ddbc
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue