diff --git a/cangen/can-messages/bms.json b/cangen/can-messages/bms.json index 3135294..4e9c34a 100644 --- a/cangen/can-messages/bms.json +++ b/cangen/can-messages/bms.json @@ -993,4 +993,4 @@ } ] } -] \ No newline at end of file +] diff --git a/cangen/can-messages/mpu.json b/cangen/can-messages/mpu.json index 68279be..41216d4 100644 --- a/cangen/can-messages/mpu.json +++ b/cangen/can-messages/mpu.json @@ -131,6 +131,21 @@ } ] } + , + { + "name": "MPU/State/TorqueLimit", + "unit": "percentage", + "sim_min": 0, + "sim_max": 1, + "sim_inc_min": 0.1, + "sim_inc_max": 0.1, + "points": [ + { + "size": 8, + "format": "divide100" + } + ] + } ] }, { diff --git a/platforms/stm32f405/include/stm32xx_hal.h b/platforms/stm32f405/include/stm32xx_hal.h index 0d9c798..ef6b42f 100644 --- a/platforms/stm32f405/include/stm32xx_hal.h +++ b/platforms/stm32f405/include/stm32xx_hal.h @@ -13,4 +13,8 @@ #include "stm32g4xx_hal.h" #endif +#ifdef STM32F103xB +#include "stm32f1xx_hal.h" +#endif + #endif /* STM32XX_HAL_H*/