Explorar o código

加入挡位切换的log信息

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui %!s(int64=3) %!d(string=hai) anos
pai
achega
83184f87d6
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Applications/foc/motor/motor.c

+ 1 - 0
Applications/foc/motor/motor.c

@@ -132,6 +132,7 @@ static void mc_gear_vmode_changed(void) {
 	}else {
 		gears = &nv_get_gear_configs()->gears_48[0];
 	}
+	sys_debug("limit %d-%d-%d, mode = %s\n", gears[motor.n_gear].u_maxRPM, gears[motor.n_gear].u_maxIdc, gears[motor.n_gear].u_maxTorque, motor.b_is96Mode?"96V":"48V");
 	PMSM_FOC_SpeedRampLimit(gears[motor.n_gear].u_maxRPM, 500, 500);
 	PMSM_FOC_DCCurrLimit(gears[motor.n_gear].u_maxIdc);
 	PMSM_FOC_PhaseCurrLim(gears[motor.n_gear].u_maxTorque);