The Code Repository for the REV0 Steering Wheel.
Dependencies: CANBuffer KS0108_fork mbed-rtos mbed CAN Addresses
Fork of REVO_Updated_Steering by
CAN_Address.h@39:e6aa6dcf3f75, 2015-02-08 (annotated)
- Committer:
- tmccurbin
- Date:
- Sun Feb 08 05:47:05 2015 +0000
- Revision:
- 39:e6aa6dcf3f75
- Parent:
- 38:d04a430d7fe3
- Child:
- 42:701df58e923a
Fixed filters. Implemented thresholds for variable updates.
Who changed what in which revision?
User | Revision | Line number | New 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 | 38:d04a430d7fe3 | 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 | 38:d04a430d7fe3 | 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 BOARDTEMP_TX_ID TX_BASE + 0x0E |
tmccurbin | 36:8544a8900884 | 19 | |
tmccurbin | 38:d04a430d7fe3 | 20 | // Motor Screen Addresses |
tmccurbin | 36:8544a8900884 | 21 | #define MOC_AIRTEMP_ID 0x213 |
tmccurbin | 36:8544a8900884 | 22 | #define MOC_IGBTTEMP_ID 0x214 |
tmccurbin | 36:8544a8900884 | 23 | #define MOC_RPM_ID 0x211 |
tmccurbin | 36:8544a8900884 | 24 | #define PCM_TORQUERQ_ID 0x231 |
tmccurbin | 36:8544a8900884 | 25 | |
tmccurbin | 38:d04a430d7fe3 | 26 | // System Management Addresses |
tmccurbin | 36:8544a8900884 | 27 | #define SYS_GLV_CURRENT_ID 0x510 |
tmccurbin | 36:8544a8900884 | 28 | #define SYS_SWITCHES_ID 0x560 |
tmccurbin | 36:8544a8900884 | 29 | #define SYS_PWM_FAN_ID 0x530 |
tmccurbin | 36:8544a8900884 | 30 | #define SYS_PWM_PUMP_ID 0x531 |
tmccurbin | 36:8544a8900884 | 31 | #define SYS_DCDC_STATUS_ID 0x521 |
tmccurbin | 36:8544a8900884 | 32 | #define SYS_IMD_RESIST_ID 0x541 |
tmccurbin | 36:8544a8900884 | 33 | |
tmccurbin | 38:d04a430d7fe3 | 34 | // Charger Addresses |
tmccurbin | 36:8544a8900884 | 35 | #define CHARGECURR_TX_ID TX_BASE + 0x07 |
tmccurbin | 36:8544a8900884 | 36 | |
tmccurbin | 38:d04a430d7fe3 | 37 | // Faults, Flags, & Errors (CURRENTLY BEING FILTERED) |
tmccurbin | 38:d04a430d7fe3 | 38 | #define PCM_FLAGS_ID 0x202 |
tmccurbin | 38:d04a430d7fe3 | 39 | #define MOC_FAULTS_ID 0x210 |
tmccurbin | 38:d04a430d7fe3 | 40 | #define PCM_FAULTS_ID 0x221 |
tmccurbin | 36:8544a8900884 | 41 | #define FAULTCODE_TX_ID TX_BASE + 0x00 |
tmccurbin | 38:d04a430d7fe3 | 42 | #define CELLFLAGS_TX_ID_BASE TX_BASE + 0x47 |
tmccurbin | 38:d04a430d7fe3 | 43 | #define TEMPFLAGS_TX_ID_BASE TX_BASE + 0x5B |
tmccurbin | 38:d04a430d7fe3 | 44 | #define DIETEMPFLAGS_TX_ID_BASE TX_BASE + 0x74 |
tmccurbin | 38:d04a430d7fe3 | 45 | |
tmccurbin | 38:d04a430d7fe3 | 46 | |
tmccurbin | 38:d04a430d7fe3 | 47 | // Filtered Addresses |
tmccurbin | 38:d04a430d7fe3 | 48 | #define SIGNALS_TX_ID TX_BASE + 0x03 |
tmccurbin | 38:d04a430d7fe3 | 49 | #define PROFILE_TX_ID TX_BASE + 0x04 |
tmccurbin | 38:d04a430d7fe3 | 50 | #define PACKERRS_TX_ID TX_BASE + 0x05 |
tmccurbin | 38:d04a430d7fe3 | 51 | #define AH_TX_ID TX_BASE + 0x0C |
tmccurbin | 38:d04a430d7fe3 | 52 | #define SUPPLY_TX_ID TX_BASE + 0x0D |
tmccurbin | 38:d04a430d7fe3 | 53 | #define VMISMATCH_TX_ID TX_BASE + 0x0F |
tmccurbin | 38:d04a430d7fe3 | 54 | #define FANSPEED_TX_ID TX_BASE + 0x10 |
tmccurbin | 38:d04a430d7fe3 | 55 | #define STACK_OPDATA_TX_ID TX_BASE + 0x15 |
tmccurbin | 38:d04a430d7fe3 | 56 | #define INTREF_MMA_TX_ID_BASE TX_BASE + 0x1A |
tmccurbin | 38:d04a430d7fe3 | 57 | #define DIETEMP_MMA_TX_ID_BASE TX_BASE + 0x1C |
tmccurbin | 38:d04a430d7fe3 | 58 | #define VA_MMA_TX_ID_BASE TX_BASE + 0x1C |
tmccurbin | 38:d04a430d7fe3 | 59 | #define VDD_MMA_TX_ID_BASE TX_BASE + 0x20 |
tmccurbin | 38:d04a430d7fe3 | 60 | #define SOC_MMA_TX_ID_BASE TX_BASE + 0x22 |
tmccurbin | 38:d04a430d7fe3 | 61 | #define CELLV_TX_ID_BASE TX_BASE + 0x23 |
tmccurbin | 38:d04a430d7fe3 | 62 | #define TEMP_TX_ID_BASE TX_BASE + 0x4B |
tmccurbin | 38:d04a430d7fe3 | 63 | #define IC_REF_SOC_TX_ID_BASE TX_BASE + 0x5C |
tmccurbin | 38:d04a430d7fe3 | 64 | #define IC_VA_VDD_TX_ID_BASE TX_BASE + 0x64 |
tmccurbin | 38:d04a430d7fe3 | 65 | #define IC_DIETEMP_TX_ID_BASE TX_BASE + 0x6C |
tmccurbin | 38:d04a430d7fe3 | 66 | #define IC_OPDATA_TX_ID_BASE TX_BASE + 0x7C |
tmccurbin | 38:d04a430d7fe3 | 67 | #define PCM_ERROR_ID 0x200 |
tmccurbin | 38:d04a430d7fe3 | 68 | #define PCM_MODE_ID 0x201 |
tmccurbin | 38:d04a430d7fe3 | 69 | #define LEFT_MOC_TXID 0x205 |
tmccurbin | 38:d04a430d7fe3 | 70 | #define RIGHT_MOC_TXID 0x206 |
tmccurbin | 38:d04a430d7fe3 | 71 | #define MOC_CURRENT_ID 0x215 |
tmccurbin | 38:d04a430d7fe3 | 72 | #define MOC_VBUS_ID 0x216 |
tmccurbin | 38:d04a430d7fe3 | 73 | #define PCM_DIGIOUT_ID 0x230 |
tmccurbin | 38:d04a430d7fe3 | 74 | #define SYSMGMT_PUMPCMD_ID 0x580 |
tmccurbin | 38:d04a430d7fe3 | 75 | #define SYSMGMT_FANCMD_ID 0x581 |
tmccurbin | 38:d04a430d7fe3 | 76 | #define SYS_ERROR_ID 0x500 |
tmccurbin | 38:d04a430d7fe3 | 77 | #define SYS_XBEE1_ID 0x501 |
tmccurbin | 38:d04a430d7fe3 | 78 | #define SYS_XBEE2_ID 0x502 |
tmccurbin | 38:d04a430d7fe3 | 79 | #define SYS_TEMP_ID 0x503 |
tmccurbin | 38:d04a430d7fe3 | 80 | #define SYS_GLV_CAPACITY_ID 0x511 |
tmccurbin | 38:d04a430d7fe3 | 81 | #define SYS_GLV_AH_ID 0x512 |
tmccurbin | 38:d04a430d7fe3 | 82 | #define SYS_DCDC_CURRENT_ID 0x520 |
tmccurbin | 38:d04a430d7fe3 | 83 | #define SYS_IMD_STATUS_ID 0x521 |
tmccurbin | 38:d04a430d7fe3 | 84 | #define SYS_IMD_LATCH_ID 0x550 |
tmccurbin | 38:d04a430d7fe3 | 85 | #define SYS_AMS_LATCH_ID 0x551 |
tmccurbin | 38:d04a430d7fe3 | 86 | |
tmccurbin | 38:d04a430d7fe3 | 87 | |
tmccurbin | 38:d04a430d7fe3 | 88 | // Other Addresses |
tmccurbin | 36:8544a8900884 | 89 | #define MODE_TX_ID TX_BASE + 0x01 |
tmccurbin | 38:d04a430d7fe3 | 90 | #define PCM_PEDALS_ID 0x220 //MOSTLY USED FOR TESTING PROGRAM SPEED |