Config#
MDxx’s config allows for configuring the controller for a specific motor and the application it is used in. This section will cover the parameters that are used in config files.
[motor] section#
name
- actuator name. Max 20 characterspole pairs
- the number of rotor magnets divided by 2. If you are unsure type zero here - during calibration it will be autodetected. Later on it is advised to retype it after the calibration to the config file. It can be accessed using mdtool setup info or by register access.KV
- declated KV of the motor - its used when torque constant is set to zero.torque constant
- motor torque constant in Nm/Agear ratio
- gear ratio -> example 6:1 reductor is 0.166666 whereas 1:2 multiplicator is 2max current
- maximum allowable phase (not power supply) currenttorque bandwidth
- torque bandwidth settingshutdown temp
- temperature threshold in [C] of the motor that will cause a overtemperature stop. Note: this safety limit works only with a motor thermistor connected. If motor temp is 0C when mdtool setup info is called, the thremistor is not populated or is not working.
[limits] section#
Global limits used to issue warnings or errors.
max torque
- maximum allowed torque in Nmmax velocity
- maximum allowed velocity in rad/smax position
- maximum position limit in radmin position
- minimum position limit in radmax acceleration
- max acceleration in rad/s^2max deceleration
- max deceleration in rad/s^2
[profile] section#
These settings are respected in POSITION PROFILE and VELOCITY PROFILE modes.
acceleration
- profile acceleration in rad/s^2deceleration
- profile deceleration in rad/s^2velocity
- profile velocity in rad/s
[output encoder] section#
For more information please refer to output encoder section.
output encoder
- valid types: AS5047_CENTER, AS5047_OFFAXIS, MB053SFA17BENT00, CM_OFFAXISoutput encoder mode
- valid modes: STARTUP, MOTION, REPORT, CALIBRATED_REPORT
[position PID] section#
Position PID default gains (used at every startup, then can be modified using the C++/Python script, or register access)
kp
- proportional gainki
- integral gainkd
- derivative gainwindup
- integral limit
[velocity PID] section#
Velocity PID default gains (used at every startup, then can be modified using the C++/Python script, or register access)
kp
- proportional gainki
- integral gainkd
- derivative gainwindup
- integral limit
[impedance PD] section#
Impedance PID default gains (used at every startup, then can be modified using the C++/Python script, or register access)
kp
- proportional gainkd
- derivative gain