The Code Repository for the REV0 Steering Wheel.

Dependencies:   CANBuffer KS0108_fork mbed-rtos mbed CAN Addresses

Fork of REVO_Updated_Steering by Penn Electric

Committer:
tmccurbin
Date:
Thu Jan 29 04:27:19 2015 +0000
Revision:
36:8544a8900884
Child:
38:d04a430d7fe3
MAJOR UPDATE; New libraries added for screens, buffers, & CAN addresses.; CAN data displays in real-time.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tmccurbin 36:8544a8900884 1 #define TX_BASE 0x300 // TX IDs start at 0x300
tmccurbin 36:8544a8900884 2 #define TX_DUMP_OFFSET 0x100 // Bulk data dumps start at ID 0x300+0x100 = 0x400 for dumping current RAM and freezeFrames
tmccurbin 36:8544a8900884 3
tmccurbin 36:8544a8900884 4 //Home Screen Addresses
tmccurbin 36:8544a8900884 5 #define SOC_TX_ID TX_BASE + 0x0B
tmccurbin 36:8544a8900884 6 #define SYS_GLV_SOC_ID 0x513
tmccurbin 36:8544a8900884 7 #define PCM_FRPM_ID 0x222
tmccurbin 36:8544a8900884 8 #define TEMP_MMA_TX_ID_BASE TX_BASE + 0x18
tmccurbin 36:8544a8900884 9 #define TEMP_MMA_TX_ID_BASE2 TX_BASE + 0x19
tmccurbin 36:8544a8900884 10 #define MOC_MOTEMP_ID 0x212
tmccurbin 36:8544a8900884 11
tmccurbin 36:8544a8900884 12 //Battery Screen Addresses
tmccurbin 36:8544a8900884 13 #define VOLTAGE_TX_ID TX_BASE + 0x08
tmccurbin 36:8544a8900884 14 #define POWER_TX_ID TX_BASE + 0x09
tmccurbin 36:8544a8900884 15 #define CURRENT_TX_ID TX_BASE + 0x06
tmccurbin 36:8544a8900884 16 #define CELLV_MMA_TX_ID_BASE TX_BASE + 0x16
tmccurbin 36:8544a8900884 17 #define CELLV_MMA_TX_ID_BASE2 TX_BASE + 0x17
tmccurbin 36:8544a8900884 18 #define TEMP_MMA_TX_ID_BASE TX_BASE + 0x18
tmccurbin 36:8544a8900884 19 #define TEMP_MMA_TX_ID_BASE2 TX_BASE + 0x19
tmccurbin 36:8544a8900884 20 #define BOARDTEMP_TX_ID TX_BASE + 0x0E
tmccurbin 36:8544a8900884 21
tmccurbin 36:8544a8900884 22 //Motor Screen Addresses
tmccurbin 36:8544a8900884 23 #define MOC_MOTEMP_ID 0x212
tmccurbin 36:8544a8900884 24 #define MOC_AIRTEMP_ID 0x213
tmccurbin 36:8544a8900884 25 #define MOC_IGBTTEMP_ID 0x214
tmccurbin 36:8544a8900884 26 #define MOC_RPM_ID 0x211
tmccurbin 36:8544a8900884 27 #define PCM_TORQUERQ_ID 0x231
tmccurbin 36:8544a8900884 28
tmccurbin 36:8544a8900884 29 //System Management Addresses
tmccurbin 36:8544a8900884 30 #define SYS_GLV_CURRENT_ID 0x510
tmccurbin 36:8544a8900884 31 #define SYS_SWITCHES_ID 0x560
tmccurbin 36:8544a8900884 32 #define SYS_PWM_FAN_ID 0x530
tmccurbin 36:8544a8900884 33 #define SYS_PWM_PUMP_ID 0x531
tmccurbin 36:8544a8900884 34 #define SYS_DCDC_STATUS_ID 0x521
tmccurbin 36:8544a8900884 35 #define SYS_IMD_RESIST_ID 0x541
tmccurbin 36:8544a8900884 36
tmccurbin 36:8544a8900884 37 //Charger Addresses
tmccurbin 36:8544a8900884 38 #define CHARGECURR_TX_ID TX_BASE + 0x07
tmccurbin 36:8544a8900884 39
tmccurbin 36:8544a8900884 40 //Other Addresses
tmccurbin 36:8544a8900884 41 #define FAULTCODE_TX_ID TX_BASE + 0x00
tmccurbin 36:8544a8900884 42 #define MODE_TX_ID TX_BASE + 0x01
tmccurbin 36:8544a8900884 43 #define PCM_PEDALS_ID 0x220