From afe0059b51ecaf8364e7b4e9823d6e81b6f23513 Mon Sep 17 00:00:00 2001 From: Fisch Date: Tue, 18 Jul 2023 21:01:07 +0200 Subject: [PATCH] change efficiency display for consumption in kWh/100km --- controller_teensy/include/display.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/controller_teensy/include/display.h b/controller_teensy/include/display.h index 59bd7ec..94be73e 100644 --- a/controller_teensy/include/display.h +++ b/controller_teensy/include/display.h @@ -221,20 +221,20 @@ void display_standingDisplay(ESCSerialComm& escFront, ESCSerialComm& escRear) { display.print(F("Trip:")); dtostrf(_displaytrip,1,0,buf); display.print((String)buf); - display.print(" m "); + display.print("m "); //dtostrf(_displaycurrent,1,2,buf); dtostrf(_displaywatthours,1,2,buf); display.print((String)buf); //display.print(" Ah"); - display.print(" Wh"); + display.print("Wh"); display.println(); - display.print(F("Eff: ")); + display.print(F("")); //dtostrf( _displaytrip/1000/_displaycurrent ,1,2,buf); - dtostrf( _displaytrip/1000/_displaywatthours ,1,2,buf); + dtostrf( _displaywatthours/_displaytrip*100,1,2,buf); display.print((String)buf); //display.print(" km/Ah"); - display.print(" km/Wh"); + display.print(" kWh/100km"); if (_displayOverall){ display.print(" sum");