You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/simplefoc_library/code/communication/commander/index.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -233,9 +233,9 @@ If you wish to change the character id of a certain command that is the place to
233
233
234
234
In general we can separate the commands into:
235
235
-[Commander commands](#commander-commands) - commands specific for the `Commander` class
236
-
-[PID commands](commands_pid) - commands specific for the `PIDController` class
237
-
-[Low pass filter commands](command_lpf) - commands specific for the `LowPassFilter` class
238
-
-[Motor commands](command_motor) - commands specific for the `FOCMotor` classes
236
+
-[PID commands](commander_pid) - commands specific for the `PIDController` class
237
+
-[Low pass filter commands](commander_pid) - commands specific for the `LowPassFilter` class
238
+
-[Motor commands](commander_motor) - commands specific for the `FOCMotor` classes
239
239
240
240
When adding the `scalar` variable to the commander or the motion control `target` the only command letter used is the one provided to the `commander.add`.
241
241
-[Scaler variable](commander_scalar) - adding the scalar `float` variable
Copy file name to clipboardExpand all lines: docs/simplefoc_library/code/motors/bldc_motors.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Working with currents instead of voltages is better in may ways, since the torqu
56
56
57
57
It is important to say that once you specify the phase resistance value, you will most probably have to retune the [velocity motion control](velocity_loop) and [angle motion control](angle_loop) parameters, due to the reason that the voltages and currents values are in different orders of magnitude. The rule of thumb is to divide all the `P`, `I` and `D` gains with the `motor.phase_resistance` value. That will be a good staring point.
58
58
59
-
Finally, this parameter is suggested to be used if one whats to switch in real time in between voltage ([voltage mode](voltage_mode)) and current based ([DC current](dc_current_torque_mode) and [FOC current](foc_current_torque_mode)) torque control strategies. Since in this way all the torque control loops will have current as input (target value) the user will not have to change the motion control parameters (PID values).
59
+
Finally, this parameter is suggested to be used if one whats to switch in real time in between voltage ([voltage mode](voltage_torque_mode)) and current based ([DC current](dc_current_torque_mode) and [FOC current](foc_current_torque_mode)) torque control strategies. Since in this way all the torque control loops will have current as input (target value) the user will not have to change the motion control parameters (PID values).
60
60
61
61
<blockquoteclass="info">
62
62
<pclass="heading">Open-loop motion control will use KV and phase resitance values </p>
@@ -157,11 +157,11 @@ Read more in the [torque control docs](voltage_torque_mode).
157
157
158
158
### Step 5.5 Torque control mode
159
159
There are 3 different torque control modes implemented in the Arduino <spanclass="simple">Simple<spanclass="foc">FOC</span>library</span>:
160
-
-[Voltage mode](voltage_mode)
160
+
-[Voltage mode](voltage_torque_mode)
161
161
-[DC current](dc_current_torque_mode)
162
162
-[FOC current](foc_current_torque_mode)
163
163
164
-
[DC current](dc_current_torque_mode) and [FOC current](foc_current_torque_mode) require current sensing and are controlling current and limiting the real current the motor is drawing, whereas [voltage mode](voltage_mode) approximates the motor current and does not use any current sensing. Read more in [torque control docs](torque_control).
164
+
[DC current](dc_current_torque_mode) and [FOC current](foc_current_torque_mode) require current sensing and are controlling current and limiting the real current the motor is drawing, whereas [voltage mode](voltage_torque_mode) approximates the motor current and does not use any current sensing. Read more in [torque control docs](torque_control).
165
165
166
166
The torque mode can be set by changing the motor attribute `torque_controller`.
167
167
```cpp
@@ -308,7 +308,7 @@ The faster you can run this function the better, here is approximative loops exe
Copy file name to clipboardExpand all lines: docs/simplefoc_library/code/motors/stepper_motors.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ Working with currents instead of voltages is better in may ways, since the torqu
57
57
58
58
It is important to say that once you specify the phase resistance value, you will most probably have to retune the [velocity motion control](velocity_loop) and [angle motion control](angle_loop) parameters, due to the reason that the voltages and currents values are in different orders of magnitude. The rule of thumb is to divide all the `P`, `I` and `D` gains with the `motor.phase_resistance` value. That will be a good staring point.
59
59
60
-
Finally, this parameter is suggested to be used if one whats to switch in real time in between voltage ([voltage mode](voltage_mode)) and current based ([DC current](dc_current_torque_mode) and [FOC current](foc_current_torque_mode)) torque control strategies. Since in this way all the torque control loops will have current as input (target value) the user will not have to change the motion control parameters (PID values).
60
+
Finally, this parameter is suggested to be used if one whats to switch in real time in between voltage ([voltage mode](voltage_torque_mode)) and current based ([DC current](dc_current_torque_mode) and [FOC current](foc_current_torque_mode)) torque control strategies. Since in this way all the torque control loops will have current as input (target value) the user will not have to change the motion control parameters (PID values).
61
61
62
62
<blockquoteclass="info">
63
63
<pclass="heading">Open-loop motion control will use KV and phase resitance values </p>
0 commit comments