# Torque control under various loads

**URL:** https://community.simplefoc.com/t/torque-control-under-various-loads/5491
**Category:** applications
**Created:** [September 20, 2024, 5:28pm UTC](https://community.simplefoc.com/t/torque-control-under-various-loads/5491 "2024-09-20T17:28:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![field\_twister](https://community.simplefoc.com/user_avatar/community.simplefoc.com/field_twister/32/7488_2.png) [@field\_twister](https://community.simplefoc.com/u/field_twister)
#### Post date: [September 20, 2024, 5:28pm UTC](https://community.simplefoc.com/t/torque-control-under-various-loads/5491/1 "2024-09-20T17:28:48Z")

</div>

I’m working on tuning a hub motor to use on a ground vehicle. Regarding only the FOC torque control loop, is it typically the case that tuning the motor unloaded gives the desired parameters in a loaded state? Or is retuning required for different loading?

---

<div class="post-metadata">

### Author: ![runger](https://community.simplefoc.com/user_avatar/community.simplefoc.com/runger/32/395_2.png) [@runger](https://community.simplefoc.com/u/runger)
#### Post date: [September 20, 2024, 6:04pm UTC](https://community.simplefoc.com/t/torque-control-under-various-loads/5491/2 "2024-09-20T18:04:43Z")

</div>

Hey @field_twister , welcome to SimpleFOC!

So for a ground vehicle, depending also on the weight, friction and type of terrain it is sitting on, you will probably have to:

- perform the motor calibration in an unloaded state
- perform the tuning in the unloaded state to get a baseline
- re-tune in the loaded state if needed

You might also just tune in the loaded state, but finding the electrical zero will definately have to be in unloaded state unless your vehicle is so light and the ground so smooth that it causes very little load.

---

<div class="post-metadata">

### Author: ![field\_twister](https://community.simplefoc.com/user_avatar/community.simplefoc.com/field_twister/32/7488_2.png) [@field\_twister](https://community.simplefoc.com/u/field_twister)
#### Post date: [September 22, 2024, 6:09pm UTC](https://community.simplefoc.com/t/torque-control-under-various-loads/5491/3 "2024-09-22T18:09:51Z")

</div>

Thank you for the response! As a follow-up: For a vehicle which needs to handle a wide range of loads, what are the typical strategies to get smooth control over the entire range? Is some sort of MPC required so that the torque loop is dynamically tuned in response to the load?

---

<div class="post-metadata">

### Author: ![runger](https://community.simplefoc.com/user_avatar/community.simplefoc.com/runger/32/395_2.png) [@runger](https://community.simplefoc.com/u/runger)
#### Post date: [September 22, 2024, 7:58pm UTC](https://community.simplefoc.com/t/torque-control-under-various-loads/5491/4 "2024-09-22T19:58:00Z")

</div>

I’m not really qualified to say… we’ve had some others here who have worked on rovers and even EV racecars, perhaps someone else can comment?

SimpleFOC only handles the low level control of the motor, but for a vehicle effective torque will also be about coordination of the wheels, detecting slip, etc. it will heavily depend on the design (differentials, 4WD with direct drive, etc)

Detecting stalls and thermal management will also be important aspects to work out.

So I think you’ll need some higher levels of control above SimpleFOC.
