Ver Fonte

foc 执行时间log

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui há 3 anos atrás
pai
commit
7bb234d990
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Applications/app/app.c

+ 1 - 1
Applications/app/app.c

@@ -94,7 +94,7 @@ static u32 _app_report_task(void *p) {
 	can_report_phase_voltage(0x45);
 	if (++loop % 10 == 0) {
 		can_report_pid_value(0x45, PID_TRQ_id);
-		sys_debug("max exec time %d, %d\n", g_meas_foc.exec_max_time, get_motor_temp());
+		sys_debug("max exec time %d, %d\n", g_meas_foc.exec_max_error_time, g_meas_foc.exec_time);
 		sys_debug("sat = %d, %d, %d\n", PMSM_FOC_Get()->pi_id->is_sat, PMSM_FOC_Get()->pi_iq->is_sat, PMSM_FOC_Get()->pi_speed->is_sat);
 	}
 	return 500;