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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+91Lines changed: 91 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,95 @@
1
1
# Unreleased Features
2
2
Please add a note of your changes below this heading if you make a Pull Request.
3
3
4
+
# Releases
5
+
## [0.5.2] - 2021-05-21
6
+
7
+
### Fixed
8
+
* spinout error is no longer sticky and doesn't trigger on static torque loads due to I^2*R electrical power
9
+
* Step and direction mode resets position when entering closed loop just like `input_pos` does
10
+
* CAN baud rate setting is now correctly handled
11
+
*`odrivetool dfu` works properly when an ODrive is flashed with the `dfu` switch set to "dfu".
12
+
*`odrivetool dfu` now erases the entire flash memory before flashing firmware. This ensures that old configuration parameters are erased.
13
+
* ASCII and the Native Protocol do not run at the same time on a UART interface. See `odrv0.config.uart0_protocol` and the `STREAM_PROTOCOL_TYPE` enums for details.
14
+
15
+
### Added
16
+
*`sc` command to ascii protocol to run `odrv.clear_errors()`
17
+
* Added phase balance check to motor calibration and MOTOR_ERROR_UNBALANCED_PHASES to error enums
18
+
* Added polarity and phase offset calibration for hall effect encoders
* Added periodic sending of encoder position on CAN
21
+
* Support for UART1 on GPIO3 and GPIO4. UART0 (on GPIO1/2) and UART1 can currently not be enabled at the same time.
22
+
* Thermistors now have a 2nd order lowpass filter applied to reduce noise
23
+
* 2-norm current clamping is used for AC induction motors
24
+
* Added spinout detection to detect incorrect encoder offset and CONTROLLER_ERROR_SPINOUT_DETECTED to error enums.
25
+
* Added AARCH64 support to libfibre
26
+
* Tuning input mode added to provide sinusoidal position, velocity, or torque stimulus. See INPUT_MODE_TUNING and the controller class for details.
27
+
* Added torque mirroring to INPUT_MODE_MIRROR
28
+
*`mechanical_power_bandwidth`, `electrical_power_bandwidth`, `spinout_electrical_power_threshold`, `spinout_mechanical_power_threshold` added to `controller.config` for spinout detection.
29
+
*`mechanical_power` and `electrical_power` added to `controller`.
30
+
31
+
### Changed
32
+
* Step/dir performance improved! Dual axis step rates up to 250kHz have been tested
33
+
* Apply_config is called for encoders after a successful direction find
34
+
* Full calibration sequence now includes hall polarity calibration if a hall effect encoder is used
35
+
* Modified encoder offset calibration to work correctly when calib_scan_distance is not a multiple of 4pi
36
+
* Moved thermistors from being a top level object to belonging to Motor objects. Also changed errors: thermistor errors rolled into motor errors
37
+
* Use DMA for DRV8301 setup
38
+
* Make NVM configuration code more dynamic so that the layout doesn't have to be known at compile time.
39
+
* GPIO initialization logic was changed. GPIOs now need to be explicitly set to the mode corresponding to the feature that they are used by. See `<odrv>.config.gpioX_mode`.
40
+
* Previously, if two components used the same interrupt pin (e.g. step input for axis0 and axis1) then the one that was configured later would override the other one. Now this is no longer the case (the old component remains the owner of the pin).
41
+
* New control loop architecture:
42
+
1. TIM8 update interrupt handler (CNT = 0) runs at a high priority and invokes the system level function `sample_cb()` to sample all timing critical inputs (currently only encoder state).
43
+
2. TIM8 update interrupt handler (CNT = 0) raises an NVIC flag to kick off a lower priority interrupt.
44
+
3. The control loop interrupt handler checks if all ADC measurements are ready and informs both motor objects about the current measurements.
45
+
4. The control loop interrupt handler invokes the system level function `control_loop_cb()` which updates all components (encoders, estimators, torque controllers, etc). The data paths between the components are configured by the Axis threads based on the requested state. This replaces the previous architecture where the components were updated inside the Axis threads in `Axis::run_control_loop()`.
46
+
5. Meanwhile the TIM1 and TIM8 updates for CNT = 3500 will have fired. The control loop interrupt handler thus reads the new ADC measurements and informs both motor objects that a DC calibration event has happened.
47
+
6. Finally, the control loop interrupt invokes `pwm_update_cb` on both motors to make them update their PWM timing registers.
48
+
* Components that need low level control over PWM timings are implemented by inheriting from the `PhaseControlLaw` interface. Three components currently inherit this interface: `FieldOrientedController`, `ResistanceMeasurementControlLaw` and `InductanceMeasurementControlLaw`.
49
+
* The FOC algorithm is now found in foc.cpp and and is presumably capable of running at a different frequency than the main control tasks (not relevant for ODrive v3).
50
+
* ACIM estimator was consolidated into a separate component `<odrv>.acim_estimator`.
51
+
* The Automatic Output Enable (AOE) flag of TIM1/TIM8 is used to achieve glitch-free motor arming.
52
+
* Sensorless mode was merged into closed loop control mode. Use `<axis>.enable_sensorless_mode` to disable the use of an encoder.
53
+
* More informative profiling instrumentation was added.
54
+
* A system-level error property was introduced.
55
+
* Added `torque_mirror_ratio` and use it to feed-forward `controller_.torque_output` in `INPUT_MODE_MIRROR`
56
+
* Accumulate integer steps in step/dir to avoid float precision errors
57
+
* Circular setpoint mode must be enabled when the step/dir interface is used.
58
+
59
+
### API Migration Notes
60
+
*`axis.config.turns_per_step` changed to `axis.controller.config.steps_per_circular_range`
61
+
*`odrive.axis.fet_thermistor`, `odrive.axis.motor_thermistor` moved to `odrive.axis.motor` object
62
+
*`enable_uart` and `uart_baudrate` were renamed to `enable_uart0` and `uart0_baudrate`.
63
+
*`enable_i2c_instead_of_can` was replaced by the separate settings `enable_i2c0` and `enable_can0`.
64
+
*`<axis>.motor.gate_driver` was moved to `<axis>.gate_driver`.
65
+
*`<axis>.min_endstop.pullup` and `<axis>.max_endstop.pullup` were removed. Use `<odrv>.config.gpioX_mode = GPIO_MODE_DIGITAL / GPIO_MODE_DIGITAL_PULL_UP / GPIO_MODE_DIGITAL_PULL_DOWN` instead.
66
+
*`<axis>.config.can_node_id` was moved to `<axis>.config.can.node_id`
67
+
*`<axis>.config.can_node_id_extended` was moved to `<axis>.config.can.is_extended`
68
+
*`<axis>.config.can_heartbeat_rate_ms` was moved to `<axis>.config.can.heartbeat_rate_ms`
69
+
*`<odrv>.get_oscilloscope_val()` was moved to `<odrv>.oscilloscope.get_val()`.
70
+
* Several error flags from `<odrv>.<axis>.error` were removed. Some were moved to `<odrv>.error` and some are no longer relevant because implementation details changed.
71
+
* Several error flags from `<odrv>.<axis>.motor.error` were removed. Some were moved to `<odrv>.error` and some are no longer relevant because implementation details changed.
72
+
*`<axis>.lockin_state` was removed as the lockin implementation was replaced by a more general open loop control block (currently not exposed on the API).
73
+
*`AXIS_STATE_SENSORLESS_CONTROL` was removed. Use `AXIS_STATE_CLOSED_LOOP_CONTROL` instead with `<odrv>.enable_sensorless_mode = True`.
74
+
*`<axis>.config.startup_sensorless_control` was removed. Use `<axis>.config.startup_closed_loop_control` instead with `<odrv>.enable_sensorless_mode = True`.
75
+
*`<axis>.clear_errors()` was replaced by the system-wide function `<odrv>.clear_errors()`.
76
+
*`<axis>.armed_state` was replaced by `<axis>.is_armed`.
77
+
* Several properties in `<axis>.motor.current_control` were changed to read-only.
78
+
*`<axis>.motor.current_control.Ibus` was moved to `<axis>.motor.I_bus`.
79
+
*`<axis>.motor.current_control.max_allowed_current` was moved to `<axis>.motor.max_allowed_current`.
80
+
*`<axis>.motor.current_control.overcurrent_trip_level` was removed.
81
+
*`<axis>.motor.current_control.acim_rotor_flux` was moved to `<axis>.acim_estimator.rotor_flux`.
82
+
*`<axis>.motor.current_control.async_phase_vel` was moved to `<axis>.acim_estimator.stator_phase_vel`.
83
+
*`<axis>.motor.current_control.async_phase_offset` was moved to `<axis>.acim_estimator.phase`.
84
+
*`<axis>.motor.timing_log` was removed in favor of `<odrv>.task_times` and `<odrv>.<axis>.task_times`.
85
+
*`<axis>.motor.config.direction` was moved to `<axis>.encoder.config.direction`.
86
+
*`<axis>.motor.config.acim_slip_velocity` was moved to `<axis>.acim_estimator.config.slip_velocity`.
87
+
* Several properties were changed to readonly.
88
+
*`<axis>.encoder.config.offset` was renamed to ``<axis>.encoder.config.phase_offset`
89
+
*`<axis>.encoder.config.offset_float` was renamed to ``<axis>.encoder.config.phase_offset_float`
90
+
*`<odrv>.config.brake_resistance == 0.0` is no longer a valid way to disable the brake resistor. Use `<odrv>.config.enable_brake_resistor` instead. A reboot is necessary for this to take effect.
91
+
*`<odrv>.can.set_baud_rate()` was removed. The baudrate is now automatically updated when writing to `<odrv>.can.config.baud_rate`.
92
+
4
93
# Releases
5
94
## [0.5.1] - 2020-09-27
6
95
### Added
@@ -18,6 +107,8 @@ Please add a note of your changes below this heading if you make a Pull Request.
18
107
*`axis.motor.get_inverter_temp()`, `axis.motor.inverter_temp_limit_lower` and `axis.motor.inverter_temp_limit_upper` have been moved to seperate fet thermistor object under `axis.fet_thermistor`. `get_inverter_temp()` function has been renamed to `temp` and is now a read-only property.
19
108
*`axis.config.counts_per_step` is now `axis.config.turns_per_step`
20
109
* Outputs of `axis.sensorless_estimator` are now in turns/s instead of electrical rad/s
110
+
* Fixed bug of high current during lockin-ramp caused by `motor::update()` expecting a torque command instead of current
111
+
* Fixed bug where commanded velocity was extremely high just after sensorless ramp when using `input_mode` INPUT_MODE_VEL_RAMP caused by `vel_setpoint` and `axis.config.sensorless_ramp.vel` being in different units
21
112
22
113
### Fixed
23
114
* Fixed bug of high current during lockin-ramp caused by `motor::update()` expecting a torque command instead of current
0 commit comments