Przeglądaj źródła

vbus 电流最大200A

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui 3 lat temu
rodzic
commit
8191a204d0
2 zmienionych plików z 3 dodań i 1 usunięć
  1. 2 0
      Applications/app/app.c
  2. 1 1
      Applications/bsp/board_mc100_v1.h

+ 2 - 0
Applications/app/app.c

@@ -131,6 +131,8 @@ static u32 _app_report_task(void *p) {
 		sys_debug("acc vol %d\n", get_acc_vol());
 		sys_debug("throttle %f\n", get_throttle_float());
 		sys_debug("ADC Vref %f, %f\n", get_adc_vref(), adc_5vref_compesion());
+		sys_debug("Vdq in %f, %f\n", PMSM_FOC_Get()->in.s_targetVdq.d, PMSM_FOC_Get()->in.s_targetVdq.q);
+		sys_debug("VDQ out %f, %f\n", PMSM_FOC_Get()->out.s_OutVdq.d, PMSM_FOC_Get()->out.s_OutVdq.q);
 		//sys_debug("target current %f\n", PMSM_FOC_Get()->in.s_targetCurrent);
 		//thro_torque_log();
 		//sys_debug("fan rpm %d, %d\n", mc_params()->fan[0].rpm, mc_params()->fan[1].rpm);

+ 1 - 1
Applications/bsp/board_mc100_v1.h

@@ -11,7 +11,7 @@
 #define CONFIG_RATED_DC_VOL (96.0f)   /* 母线最大电压 V*/
 #define CONFIG_MIN_DC_VOL   (36.0f)
 
-#define CONFIG_MAX_VBUS_CURRENT 120.0f
+#define CONFIG_MAX_VBUS_CURRENT 200.0f
 #define CONFIG_MAX_MOT_RPM      9000.0f
 #define CONFIG_MAX_PHASE_CURR   500.0F
 #define CONFIG_MAX_PHASE_VOL    (CONFIG_MOS_MAX_VOL - 20.0F)