|
|
@@ -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;
|
|
|
}
|