- The
TorqueGenerator
class simulates an ideal torque generator.
torque_generator.cpp, torque_generator.hpp
: Definitions and declarations of the classtorque_generator.ini
: Initialization fileplot_torque_generator.py
: An example of a Python script to plot torque_generator output
- Set the parameters in
torque_generator.ini
.torque_magnitude_standard_deviation_Nm
: Standard deviation of torque magnitudetorque_direction_standard_deviation_deg
: Standard deviation of torque direction- Other parameters
- Parameters for the
Component
class
- Parameters for the
- Create an instance by using the initialization function
InitTorqueGenerator
- Use the
SetTorque*
function to set the ordered torque.
- The
MainRoutine
function adds output noise to the ordered torque and calculates generated torque.
- NA
- NA
- The output result obtained by the default initial settings.
- The figure is generated by the Python script.