Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SPI_TFTx2 SPI_TFTx2_ILI9341 TFT_fonts TOUCH_TFTx2 mbed
Fork of CANary_9341 by
Diff: main.cpp
- Branch:
- Metric
- Revision:
- 114:3f8c59a8a2b9
- Parent:
- 113:f388b4505463
- Child:
- 115:549410af477d
diff -r f388b4505463 -r 3f8c59a8a2b9 main.cpp
--- a/main.cpp Mon Jul 01 02:54:46 2013 +0000
+++ b/main.cpp Tue Jul 02 02:57:36 2013 +0000
@@ -24,7 +24,7 @@
#include "displayModes.h"
#include "TOUCH_TFTx2.h"
-char revStr[7] = "113"; // gg - revision string, max 6 characters
+char revStr[7] = "114"; // gg - revision string, max 6 characters
FATFS USBdrive;
LocalFileSystem local("local");
@@ -613,6 +613,7 @@
case 32: // right col, bottom row (not nav)
if (dMode[whichTouched] == configScreen) {
+ logEn=false;
updateFirmware();
} else if (dMode[whichTouched] == tripScreen) {
miles_trip[2]=0;
@@ -709,7 +710,8 @@
//compute historic efficiency
if(numSsamples>0){ // Avoid div0
- mph[0]=((float) motorRPM)/numSsamples/215; // Empirically derived - may change car to car
+ //mph[0]=((float) motorRPM)/numSsamples/215; // Empirically derived - may change car to car
+ mph[0]=((float) motorRPM)/numSsamples/219; // Empirically derived - may change car to car
} else {
mph[0]=0;
}
