mirror of https://github.com/rusefi/bldc.git
change HW limits
This commit is contained in:
parent
58f07b4e87
commit
f9accd76e9
|
@ -387,9 +387,15 @@
|
||||||
#ifdef HW_HAS_DUAL_PARALLEL
|
#ifdef HW_HAS_DUAL_PARALLEL
|
||||||
#define HW_LIM_CURRENT -300.0, 300.0
|
#define HW_LIM_CURRENT -300.0, 300.0
|
||||||
#define HW_LIM_CURRENT_ABS 0.0, 400.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
|
#else
|
||||||
#define HW_LIM_CURRENT -150.0, 150.0
|
#define HW_LIM_CURRENT -150.0, 150.0
|
||||||
#define HW_LIM_CURRENT_ABS 0.0, 200.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
|
#endif
|
||||||
#define HW_LIM_CURRENT_IN -150.0, 150.0
|
#define HW_LIM_CURRENT_IN -150.0, 150.0
|
||||||
#define HW_LIM_VIN 6.0, 94.0
|
#define HW_LIM_VIN 6.0, 94.0
|
||||||
|
|
|
@ -368,17 +368,17 @@
|
||||||
#define HW_CANTX_PIN 1
|
#define HW_CANTX_PIN 1
|
||||||
|
|
||||||
|
|
||||||
#ifndef MCCONF_L_MAX_VOLTAGE
|
|
||||||
#define MCCONF_L_MAX_VOLTAGE 92.0
|
|
||||||
#endif
|
|
||||||
#ifndef MCCONF_M_DRV8301_OC_ADJ
|
#ifndef MCCONF_M_DRV8301_OC_ADJ
|
||||||
#define MCCONF_M_DRV8301_OC_ADJ 14
|
#define MCCONF_M_DRV8301_OC_ADJ 14
|
||||||
#endif
|
#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
|
// Setting limits
|
||||||
#define HW_LIM_CURRENT -150.0, 150.0
|
#define HW_LIM_CURRENT -150.0, 150.0
|
||||||
#define HW_LIM_CURRENT_IN -120.0, 120.0
|
#define HW_LIM_CURRENT_IN -120.0, 120.0
|
||||||
#define HW_LIM_CURRENT_ABS 0.0, 200.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_ERPM -200e3, 200e3
|
||||||
#define HW_LIM_DUTY_MIN 0.0, 0.1
|
#define HW_LIM_DUTY_MIN 0.0, 0.1
|
||||||
#define HW_LIM_DUTY_MAX 0.0, 0.95
|
#define HW_LIM_DUTY_MAX 0.0, 0.95
|
||||||
|
|
Loading…
Reference in New Issue