Skip to content

Commit

Permalink
Update control_system.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
mhinkkan authored Aug 25, 2024
1 parent f1193ed commit c2e9e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/control/control_system.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Common
Main Control Loop
-----------------

By default, discrete-time control systems in *motulator* run the following scheme in their main control loop:
By default, discrete-time control systems in *motulator* run the following scheme in their main control loops:

1. Get the feedback signals for the controllers. This step may contain first getting the measurements and then optionally computing the observer outputs. These measured and estimated signals are collected to the SimpleNamespace object named `fbk`.
2. Get the reference signals and compute the controller outputs based on the feedback signals `fbk`. These reference signals are collected to the SimpleNamespace object named `ref`.
3. Update the states of the control system for the next sampling instant.
4. Save the feedback signals `fbk` and the reference signals `ref` so they can be accessed after the simulation.
5. Return the sampling period `T_s` and the duty ratios `d_abc` for the carrier comparison.

A template of this main control loop is available in the base class for control systems in :class:`motulator.common.control.ControlSystem`. Using this template is not necessary, but it may simplify the implementation of new control systems.
A template of this main control loop is available in the base class for control systems in :class:`motulator.common.control.ControlSystem`. Using this template is not necessary, but it may simplify the implementation of new control systems.

0 comments on commit c2e9e49

Please sign in to comment.