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
The GEM cookbook features a small paragraph explaining the usage of voltage supply and then an examplary gem.make() where the voltage is supply is being omitted:
# define a PMSM with discrete action space
env = gem.make(
motor_env_id,
# visualize the results
visualization=visualization,
# parameterize the PMSM and update limitations
motor=dict(
motor_parameter=motor_parameter,
limit_values=limit_values,
nominal_values=nominal_values,
motor_initializer=motor_initializer,
),
# define the random initialisation for load and motor
load=load,
reward_function=rf,
tau=tau,
#supply=supply,
reference_generator=rg,
ode_solver='euler',
callbacks=my_callback,
physical_system_wrappers=physical_system_wrappers, # Pass the Physical System Wrappers
constraints=constraints
)
However, it is extremely important to set the voltage supply to the limit voltage in case of a constant voltage supply. If you don't, the motor will behave very unexpected.
Another approach could be to automatically set the supply voltage to the limit voltage if nothing else is specified. Or to throw an error that the supply voltage was not given by the user while nominal and limit values were.
The text was updated successfully, but these errors were encountered:
The GEM cookbook features a small paragraph explaining the usage of voltage supply and then an examplary gem.make() where the voltage is supply is being omitted:
However, it is extremely important to set the voltage supply to the limit voltage in case of a constant voltage supply. If you don't, the motor will behave very unexpected.
Another approach could be to automatically set the supply voltage to the limit voltage if nothing else is specified. Or to throw an error that the supply voltage was not given by the user while nominal and limit values were.
The text was updated successfully, but these errors were encountered: