only:mre_f4
This commit is contained in:
rusefillc 2023-04-22 12:05:19 -04:00
parent 9ad6ec2382
commit 4c13fcfdbe
3 changed files with 4 additions and 1 deletions

View File

@ -328,6 +328,7 @@ typedef enum __attribute__ ((__packed__)) {
typedef enum __attribute__ ((__packed__)) {
BMW_e46 = 0,
W202 = 1,
LUA = 2,
} can_vss_nbc_e;

View File

@ -23,6 +23,8 @@ expected<uint16_t> look_up_can_id(can_vss_nbc_e type) {
return 0x01F0; /* BMW e46 ABS Message */
case W202:
return 0x0200; /* W202 C180 ABS signal */
case LUA
return 0; // a bit of a hack
default:
firmwareError(OBD_Vehicle_Speed_SensorB, "Wrong Can DBC selected: %d", type);
return unexpected;

View File

@ -1435,7 +1435,7 @@ tChargeMode_e tChargeMode;
pid_s idleRpmPid2
custom can_vss_nbc_e 1 bits, U08, @OFFSET@, [0:0], "BMW_e46", "W202"
custom can_vss_nbc_e 1 bits, U08, @OFFSET@, [0:1], "BMW_e46", "W202", "Lua"
can_vss_nbc_e canVssNbcType;set can_vss X
gppwm_channel[GPPWM_CHANNELS iterate] gppwm;