-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKSUCAN.hpp
50 lines (45 loc) · 2.61 KB
/
KSUCAN.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef KSUCAN_HPP
#define KSUCAN_HPP
/*
* CAN ID definitions
*/
#define ID_MC_TEMPERATURES_1 0xA0
#define ID_MC_TEMPERATURES_2 0xA1
#define ID_MC_TEMPERATURES_3 0xA2
#define ID_MC_ANALOG_INPUTS_VOLTAGES 0xA3
#define ID_MC_DIGITAL_INPUT_STATUS 0xA4
#define ID_MC_MOTOR_POSITION_INFORMATION 0xA5
#define ID_MC_CURRENT_INFORMATION 0xA6
#define ID_MC_VOLTAGE_INFORMATION 0xA7
#define ID_MC_FLUX_INFORMATION 0xA8
#define ID_MC_INTERNAL_VOLTAGES 0xA9
#define ID_MC_INTERNAL_STATES 0xAA
#define ID_MC_FAULT_CODES 0xAB
#define ID_MC_TORQUE_TIMER_INFORMATION 0xAC
#define ID_MC_MODULATION_INDEX_FLUX_WEAKENING_OUTPUT_INFORMATION 0xAD
#define ID_MC_FIRMWARE_INFORMATION 0xAE
#define ID_MC_DIAGNOSTIC_DATA 0xAF
#define ID_MC_COMMAND_MESSAGE 0xC0
#define ID_MC_READ_WRITE_PARAMETER_COMMAND 0xC1
#define ID_MC_READ_WRITE_PARAMETER_RESPONSE 0xC2
#define ID_VCU_STATUS 0xC3
#define ID_VCU_PEDAL_READINGS 0xC4
#define ID_VCU_WS_READINGS 0xC6
#define ID_VCU_PEDAL_THRESHOLD_SETTINGS 0xC7 // Let the VCU hold these 0xC IDs for itself, and not the ACU
#define ID_VCU_FW_VERSION 0xC8
#define ID_VCU_BOARD_ANALOG_READS_ONE 0xC9
#define ID_VCU_BOARD_ANALOG_READS_TWO 0xCA
#define ID_VCU_PEDAL_TRAVEL 0xCC
#define ID_DASH_BUTTONS 0xEB
#define ID_DASH_FW_VERSION 0xEC
#define ID_MC_CURRENT_LIMIT_COMMAND 0x202
#define ID_BMS_SOC 0x6B3 //made this real!
#define ID_BMS_CURRENT_LIMIT_INFO 0x6B1
#define ID_BMS_PACK_VOLTAGE_INFO 0x6B2
#define ID_ACU_RELAY 0x258
#define ID_ACU_MEASUREMENTS 0x259
#define ID_PRECHARGE_STATUS 0x69
// number of rx and tx mailboxes
#define NUM_TX_MAILBOXES 32
#define NUM_RX_MAILBOXES 32
#endif