* init acc_addr & acc_vl value

This commit is contained in:
Rick Lan
2018-08-30 20:06:28 +10:00
parent 8c05ca15b4
commit 99a25a480b
+2
View File
@@ -30,6 +30,8 @@ uint32_t toyota_ts_last = 0;
int toyota_cruise_engaged_last = 0; // cruise state
struct sample_t toyota_torque_meas; // last 3 motor torques produced by the eps
uint32_t acc_addr = 0;
uint32_t acc_vl = 0;
static void toyota_rx_hook(CAN_FIFOMailBox_TypeDef *to_push) {
// get eps motor torque (0.66 factor in dbc)