EMF Feedforward
- class gem_controllers.stages.emf_feedforward.EMFFeedforward[source]
This class calculates the emf feedforward, to decouple the actions.
- __call__(state, reference)[source]
Calculate the emf feedforward voltages and add them to the actions of the current controller.
- Parameters
state (np.ndarray) – The state of the environment.
reference (np.ndarray) – The reference voltages.
- Returns
decoupled input voltages
- Return type
input voltages(np.ndarray)
- property action_range
Action range of the motor
- property current_indices
Indices of the currents
- property inductance
Inductances of the motor
- omega_el(state)[source]
Calculate the electrical speed.
- Parameters
state (np.array) – state of the environment
- Returns
electrical speed
- Return type
float
- property omega_idx
Index of the rotational speed omega
- property psi
Permanent magnet flux of the motor