TODO: changing this currently requires a reboot - fix this
Defines the baudrate used on the UART interface. Some baudrates will have a small timing error due to hardware limitations.
Here’s an (incomplete) list of baudrates for ODrive v3.x:
|1.2 KBps||1.2 KBps||0|
|2.4 KBps||2.4 KBps||0|
|9.6 KBps||9.6 KBps||0|
|19.2 KBps||19.195 KBps||0.02|
|38.4 KBps||38.391 KBps||0.02|
|57.6 KBps||57.613 KBps||0.02|
|115.2 KBps||115.068 KBps||0.11|
|230.4 KBps||230.769 KBps||0.16|
|460.8 KBps||461.538 KBps||0.16|
|921.6 KBps||913.043 KBps||0.93|
|1.792 MBps||1.826 MBps||1.9|
|1.8432 MBps||1.826 MBps||0.93|
For more information refer to Section 30.3.4 and Table 142 (the column with f_PCLK = 42 MHz) in the STM datasheet.
Changing this requires a reboot.
Value of the brake resistor connected to the ODrive.
Set to 0 to disable.
Minimum voltage below which the motor stops operating.
Maximum voltage above which the motor stops operating.
This protects against cases in which the power supply fails to dissipate the brake power if the brake resistor is disabled. The default is 26V for the 24V board version and 52V for the 48V board version.
Enables the DC bus overvoltage ramp feature.
If enabled, if the measured DC voltage exceeds dc_bus_overvoltage_ramp_start, the ODrive will sink more power than usual into the the brake resistor in an attempt to bring the voltage down again.
The brake duty cycle is increased by the following amount:
Do not set this lower than your usual vbus_voltage, unless you like fried brake resistors.
Must be larger than dc_bus_overvoltage_ramp_start, otherwise the ramp feature is disabled.
Max current the power supply can source.
Max current the power supply can sink.
You most likely want a non-positive value here. Set to -INFINITY to disable.
This interface has no functions.