Преглед на файлове

修改手误问题

Signed-off-by: huhui <huhui@sharkgulf.com>
huhui преди 2 години
родител
ревизия
aa87a28003
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      Applications/foc/core/thro_torque.c

+ 2 - 2
Applications/foc/core/thro_torque.c

@@ -199,7 +199,7 @@ void thro_torque_process(u8 run_mode, float f_throttle) {
 	if (thro_r > _torque.thro_ration) {
 		if (!_torque.accl) {
 			_torque.thro_ration_last = _torque.thro_ration;
-			_torque.torque_real = PMSM_FOC_Get()->in.s_targetCurrent;
+			_torque.torque_real = PMSM_FOC_Get()->in.s_targetTorque;
 			if (_torque.torque_real < 0) { //电子刹车的时候,扭矩可能为负
 				_torque.torque_real = 0;
 			}
@@ -211,7 +211,7 @@ void thro_torque_process(u8 run_mode, float f_throttle) {
 	}else if (thro_r < _torque.thro_ration) {
 		if (_torque.accl) {
 			_torque.thro_ration_last = _torque.thro_ration;
-			_torque.torque_real = PMSM_FOC_Get()->in.s_targetCurrent;
+			_torque.torque_real = PMSM_FOC_Get()->in.s_targetTorque;
 			if (_torque.torque_real < 0) { //电子刹车的时候,扭矩可能为负
 				_torque.torque_real = 0;
 			}