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
+2
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ Please add a note of your changes below this heading if you make a Pull Request.
9
9
* Step and direction mode resets position when entering closed loop just like `input_pos` does
10
10
* CAN baud rate setting is now correctly handled
11
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.
12
14
13
15
### Added
14
16
*`sc` command to ascii protocol to run `odrv.clear_errors()`
Copy file name to clipboardexpand all lines: docs/commands.md
+9-5
Original file line number
Diff line number
Diff line change
@@ -80,16 +80,20 @@ All variables that are part of a `[...].config` object can be saved to non-volat
80
80
*`<odrv>.hw_version_major`, `<odrv>.hw_version_minor`, `<odrv>.hw_version_revision`: The hardware version of your ODrive.
81
81
82
82
## Setting up sensorless
83
-
The ODrive can run without encoder/hall feedback, but there is a minimum speed, usually around a few hundred RPM.
83
+
The ODrive can run without encoder/hall feedback, but there is a minimum speed, usually around a few hundred RPM. In other words, sensorless mode does not support stopping or changing direction!
84
+
85
+
Sensorless mode starts by ramping up the motor speed in open loop control and then switches to closed loop control automatically. The sensorless speed ramping parameters are in `axis.config.sensorless_ramp` The `vel` and `accel` (in [radians/s] and [radians/s^2]) control the speed that the ramp tries to reach and how quickly it gets there. When the ramp reaches `sensorless_ramp.vel`, `controller.input_vel` is automatically set to the same velocity, in [turns/s], and the state switches to closed loop control.
86
+
87
+
If your motor comes to a stop after the ramp, try incrementally raising the `vel` parameter. The goal is to be above the minimum speed necessary for sensorless position and speed feedback to converge - this is not well-parameterized per motor. The parameters suggested below work for the D5065 motor, with 270KV and 7 pole pairs. If your motor grinds and skips during the ramp, lower the `accel` parameter until it is tolerable.
88
+
89
+
Below are some suggested starting parameters that you can use for the ODrive D5065 motor. Note that you _must_ set the `pm_flux_linkage` correctly for sensorless mode to work. Motor calibration and setup must also be completed before sensorless mode will work.
84
90
85
-
Below are some suggested starting parameters that you can use. Note that you _must_ set the `pm_flux_linkage` correctly for sensorless mode to work. Motor calibration and setup must also be completed before sensorless mode will work.
0 commit comments