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 TFT_fonts TOUCH_TFTx2 mbed
Fork of CANary by
Diff: main.cpp
- Branch:
- Metric
- Revision:
- 102:fd19f777a0b4
- Parent:
- 101:94b8aca2d47a
- Child:
- 103:1389e9efe8c3
--- a/main.cpp Sat Jun 15 19:05:32 2013 +0000
+++ b/main.cpp Thu Jun 20 05:35:36 2013 +0000
@@ -2,7 +2,7 @@
//To Do:
// * USB device detect
-// * Ability to update binary from the thumb-drive (requires file timestamp)
+// * Enable file timestamps
// * Audible friction brake feedback
// * User-configurable watchpoint
// * Add 50% charge option
@@ -10,6 +10,20 @@
// * Fix bug in playback while connected to canbus (hangs)
// * Fix no power displayed while charging
// * Force regen display to zero when in neutral
+// * Add coasting regen to regen/braking display
+// * Change semilog efficiancy graph to linear with 10 minute values
+// * Add Trip meter (kWh and efficiency for current trip)
+// * Make unique sound when log file write fails and logging disabled
+// * Make display updates interruptable for log writes
+// * Add additional 79b bank readouts
+// * Add algorithmic temperature using raw ADC for better accuracy
+// * Display max temperature instead of average
+// * Ignore the missing 4th pemperature sensor on 2013 models
+// * Add ability to transfer settings config file to/from USB
+// * Add Ah & Health
+
+//Bugs:
+// *** Average temperature seems to only get 3 out of 4 on the first read
#include "mbed.h"
#include "CAN.h"
@@ -129,6 +143,10 @@
unsigned short pointerSep;
unsigned char reqMsgCnt = 99;
unsigned char battTemp_x4 = 0;
+unsigned long Ah_x10000 = 0;
+unsigned long SOC_x10000 = 0;
+unsigned short SOH_x100 = 0;
+signed short battTemp_x10 = 0;
bool metric = false;
int main() {
