mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-20 06:28:03 +08:00
update mac run instructions
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@ pip install pyusb pyserial
|
||||
* If 'Odrive version 3.x' is not in the list of devices upon opening Zadig, check 'List All Devices' from the options menu. With the Odrive selected in the device list choose 'libusb-win32' from the target driver list and select the large 'install driver' button.
|
||||
6. Open the bash prompt in the `ODrive/tools/` folder.
|
||||
7. Run `python3 demo.py` or `python3 explore_odrive.py`.
|
||||
- __Mac__: `python3 demo.py --discover serial` or `python3 explore_odrive.py --discover serial`
|
||||
- __Mac__: instead run: `python3 demo.py --discover serial` or `python3 explore_odrive.py --discover serial`
|
||||
- `demo.py` is a very simple script which will make motor 0 turn back and forth. Use this as an example if you want to control the ODrive yourself programatically.
|
||||
- `explore_odrive.py` drops you into an interactive python shell where you can explore and edit the parameters that are available on your device. For instance `my_odrive.motor0.pos_setpoint = 10000` makes motor0 move to position 10000. To connect over serial instead of USB run `./tools/explore_odrive.py --discover serial`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user