diff --git a/hwconf/hw_stormcore_100d.h b/hwconf/hw_stormcore_100d.h index 1e9e0b36..91b9a714 100644 --- a/hwconf/hw_stormcore_100d.h +++ b/hwconf/hw_stormcore_100d.h @@ -387,9 +387,15 @@ #ifdef HW_HAS_DUAL_PARALLEL #define HW_LIM_CURRENT -300.0, 300.0 #define HW_LIM_CURRENT_ABS 0.0, 400.0 +#ifndef MCCONF_L_MAX_ABS_CURRENT +#define MCCONF_L_MAX_ABS_CURRENT 400.0 // The maximum absolute current above which a fault is generated +#endif #else #define HW_LIM_CURRENT -150.0, 150.0 #define HW_LIM_CURRENT_ABS 0.0, 200.0 +#ifndef MCCONF_L_MAX_ABS_CURRENT +#define MCCONF_L_MAX_ABS_CURRENT 200.0 // The maximum absolute current above which a fault is generated +#endif #endif #define HW_LIM_CURRENT_IN -150.0, 150.0 #define HW_LIM_VIN 6.0, 94.0 diff --git a/hwconf/hw_stormcore_60d.h b/hwconf/hw_stormcore_60d.h index a4a9ac6b..59b4c80f 100644 --- a/hwconf/hw_stormcore_60d.h +++ b/hwconf/hw_stormcore_60d.h @@ -368,17 +368,17 @@ #define HW_CANTX_PIN 1 -#ifndef MCCONF_L_MAX_VOLTAGE -#define MCCONF_L_MAX_VOLTAGE 92.0 -#endif #ifndef MCCONF_M_DRV8301_OC_ADJ #define MCCONF_M_DRV8301_OC_ADJ 14 #endif +#ifndef MCCONF_L_MAX_ABS_CURRENT +#define MCCONF_L_MAX_ABS_CURRENT 200.0 // The maximum absolute current above which a fault is generated +#endif // Setting limits #define HW_LIM_CURRENT -150.0, 150.0 #define HW_LIM_CURRENT_IN -120.0, 120.0 #define HW_LIM_CURRENT_ABS 0.0, 200.0 -#define HW_LIM_VIN 6.0, 94.0 +#define HW_LIM_VIN 6.0, 57.0 #define HW_LIM_ERPM -200e3, 200e3 #define HW_LIM_DUTY_MIN 0.0, 0.1 #define HW_LIM_DUTY_MAX 0.0, 0.95