|
@@ -43,7 +43,7 @@ Update Time
|
|
*=======================================================================*/
|
|
*=======================================================================*/
|
|
#define CADENCE_ASSIST 1
|
|
#define CADENCE_ASSIST 1
|
|
#define TORQUE_ASSIST 2
|
|
#define TORQUE_ASSIST 2
|
|
-#define ASSIST_MODE CADENCE_ASSIST
|
|
|
|
|
|
+#define ASSIST_MODE TORQUE_ASSIST
|
|
/*======================================================================*
|
|
/*======================================================================*
|
|
Motor Number Selection
|
|
Motor Number Selection
|
|
*=======================================================================*/
|
|
*=======================================================================*/
|
|
@@ -765,14 +765,14 @@ Update Time
|
|
#define ALM_ADC_DETE_HIG_VAL 175 // unit: 0.01V, ADC offset Voltage max
|
|
#define ALM_ADC_DETE_HIG_VAL 175 // unit: 0.01V, ADC offset Voltage max
|
|
|
|
|
|
/* IPM over heat */
|
|
/* IPM over heat */
|
|
-#define ALM_IPM_OVR_HEAT_VAL 105 // unit: Ce, Threshold value
|
|
|
|
|
|
+#define ALM_IPM_OVR_HEAT_VAL 125 // unit: Ce, Threshold value
|
|
#define ALM_IPM_OVR_TM 2 // unit: s, Time of duration(TBS)
|
|
#define ALM_IPM_OVR_TM 2 // unit: s, Time of duration(TBS)
|
|
-#define PWRLIM_START_THRESHOLD_TEMP 85 // Q0,Ce
|
|
|
|
|
|
+#define PWRLIM_START_THRESHOLD_TEMP 115 // Q0,Ce
|
|
|
|
|
|
/* MOTOR over heat */
|
|
/* MOTOR over heat */
|
|
-#define ALM_MOTOR_OVR_HEAT_VAL 110 // unit: Ce, Threshold value
|
|
|
|
|
|
+#define ALM_MOTOR_OVR_HEAT_VAL 135 // unit: Ce, Threshold value
|
|
#define ALM_MOTOR_OVR_TM 2 // unit: s, Time of duration(TBS)
|
|
#define ALM_MOTOR_OVR_TM 2 // unit: s, Time of duration(TBS)
|
|
-#define PWRLIM_START_THRESHOLD_MOTOR_TEMP 95 // Q0,Ce
|
|
|
|
|
|
+#define PWRLIM_START_THRESHOLD_MOTOR_TEMP 120 // Q0,Ce
|
|
|
|
|
|
/* Stop time of three phase short force */
|
|
/* Stop time of three phase short force */
|
|
#define ALM_THR_PHS_SHRT_FRC_TM 200 // unit: ms, Time of duration(TBC)
|
|
#define ALM_THR_PHS_SHRT_FRC_TM 200 // unit: ms, Time of duration(TBC)
|
|
@@ -795,12 +795,12 @@ Update Time
|
|
#define ALM_IPM_OC_REC_TM 1000//100 // unit: ms, Time of duration(TBC)
|
|
#define ALM_IPM_OC_REC_TM 1000//100 // unit: ms, Time of duration(TBC)
|
|
|
|
|
|
/* Recover time & value of IPM over heat */
|
|
/* Recover time & value of IPM over heat */
|
|
-#define ALM_IPM_OVR_HEAT_REC_VAL 85 // unit: Ce, Threshold value
|
|
|
|
|
|
+#define ALM_IPM_OVR_HEAT_REC_VAL 105 // unit: Ce, Threshold value
|
|
#define ALM_IPM_OVR_REC_TM 60 // unit: s, Time of duration(TBC)
|
|
#define ALM_IPM_OVR_REC_TM 60 // unit: s, Time of duration(TBC)
|
|
#define ALM_IPM_OVR_REC_TM1 120 // unit: s, Time of duration(TBC)
|
|
#define ALM_IPM_OVR_REC_TM1 120 // unit: s, Time of duration(TBC)
|
|
|
|
|
|
/* Recover time & value of MOTOR over heat */
|
|
/* Recover time & value of MOTOR over heat */
|
|
-#define ALM_MOTOR_OVR_HEAT_REC_VAL 95 // unit: Ce, Threshold value
|
|
|
|
|
|
+#define ALM_MOTOR_OVR_HEAT_REC_VAL 115 // unit: Ce, Threshold value
|
|
#define ALM_MOTOR_OVR_REC_TM 60 // unit: s, Time of duration(TBC)
|
|
#define ALM_MOTOR_OVR_REC_TM 60 // unit: s, Time of duration(TBC)
|
|
#define ALM_MOTOR_OVR_REC_TM1 120 // unit: s, Time of duration(TBC)
|
|
#define ALM_MOTOR_OVR_REC_TM1 120 // unit: s, Time of duration(TBC)
|
|
|
|
|
|
@@ -849,8 +849,8 @@ Update Time
|
|
|
|
|
|
/* Drag speed & current */
|
|
/* Drag speed & current */
|
|
#define DRAG_CUR_AP 1000 // 1500 // 1500 //100 Huawei // unit: 0.01A, Drag current value
|
|
#define DRAG_CUR_AP 1000 // 1500 // 1500 //100 Huawei // unit: 0.01A, Drag current value
|
|
-#define DRAG_VOL_AP 10 // 0.1v
|
|
|
|
-#define DRAG_SPD_HZ 20 // unit: Hz, Final speed of drag
|
|
|
|
|
|
+#define DRAG_VOL_AP 20 // 0.1v
|
|
|
|
+#define DRAG_SPD_HZ 10 // unit: Hz, Final speed of drag
|
|
#define DRAG_SPD_RAMP_TM_MS 4000 // unit: ms, Time of speed from 0Hz to target Hz
|
|
#define DRAG_SPD_RAMP_TM_MS 4000 // unit: ms, Time of speed from 0Hz to target Hz
|
|
|
|
|
|
/* Open to close */
|
|
/* Open to close */
|
|
@@ -976,9 +976,9 @@ Update Time
|
|
//#define PWRLIM_ERR 500 // unit: 0.1w, Start power limit when "VAL - ERR"
|
|
//#define PWRLIM_ERR 500 // unit: 0.1w, Start power limit when "VAL - ERR"
|
|
|
|
|
|
#elif ((IPM_POWER_SEL == IPM_POWER_250W_6G) && (IPM_VOLTAGE_SEL == IPM_VOLTAGE_48V))
|
|
#elif ((IPM_POWER_SEL == IPM_POWER_250W_6G) && (IPM_VOLTAGE_SEL == IPM_VOLTAGE_48V))
|
|
-#define IDCLIMIQSTART (((ULONG)1200 << 14) / IBASE);
|
|
|
|
-#define IDCLIMIQEND (((ULONG)1300 << 14) / IBASE);
|
|
|
|
-#define PWRLIM_VAL (12*480+200) // unit: 0.1w, Power limit value
|
|
|
|
|
|
+#define IDCLIMIQSTART (((ULONG)1700 << 14) / IBASE);
|
|
|
|
+#define IDCLIMIQEND (((ULONG)1800 << 14) / IBASE);
|
|
|
|
+#define PWRLIM_VAL (17*480+200) // unit: 0.1w, Power limit value
|
|
#define PWRLIM_ERR 500 // unit: 0.1w, Start power limit when "VAL - ERR"
|
|
#define PWRLIM_ERR 500 // unit: 0.1w, Start power limit when "VAL - ERR"
|
|
|
|
|
|
#elif ((IPM_POWER_SEL == IPM_POWER_350W_6G) && (IPM_VOLTAGE_SEL == IPM_VOLTAGE_36V))
|
|
#elif ((IPM_POWER_SEL == IPM_POWER_350W_6G) && (IPM_VOLTAGE_SEL == IPM_VOLTAGE_36V))
|