Samuel Sadok
2d681f8b99
Merge branch 'sam_python_fixes' into sam_testing
2018-04-03 17:27:19 -07:00
Samuel Sadok
fbaac861d7
rename odrvtool to odrivetool
2018-03-30 16:46:22 -07:00
Samuel Sadok
583ab2b76d
silence python warnings
2018-03-30 16:32:33 -07:00
Samuel Sadok
febdb24856
display correct python tools version
2018-03-30 16:24:33 -07:00
Samuel Sadok
eeb5786397
add setup.py to publish python tools to PyPi
2018-03-30 16:21:30 -07:00
Samuel Sadok
34a95f971b
add get_version to python library
2018-03-30 15:28:00 -07:00
Samuel Sadok
e9ec8c6276
combine python tools into one single odrvtool.py
2018-03-30 15:28:00 -07:00
Samuel Sadok
a7c7ed4996
Merge branch 'sam_versions' of github.com:madcowswe/ODrive into sam_python_fixes
2018-03-29 18:34:06 -07:00
Samuel Sadok
3703ae5558
dfu.py: dump OTP when using verbose flag
2018-03-27 23:05:20 -07:00
Samuel Sadok
3b157bfbac
implement verification in DFU script
2018-03-27 17:37:37 -07:00
Samuel Sadok
b894ba37f2
fix Unix print-on-second-last-line
2018-03-25 17:35:41 -07:00
Samuel Sadok
0790ed8959
don't fail if build dir doesn't exist
2018-03-25 17:02:13 -07:00
Samuel Sadok
ef52687a37
make fancy terminal features work on Windows
...
Add Windows support for the following terminal features:
- colored output
- output on the second last line
On Unix systems, VT100 escape codes are used to achieve this,
functionality however Windows <10 doesn't interpret VT100 escape codes.
For normal colored output, we use the colorama module to abstract this
away. To print text on the second-last line we call the appropriate
Win32 API functions directly (using the win32console module).
2018-03-25 16:04:04 -07:00
Samuel Sadok
ae8acae7ef
make fancy terminal features work on Windows
...
Add Windows support for the following terminal features:
- colored output
- output on the second last line
On Unix systems, VT100 escape codes are used to achieve this,
functionality however Windows <10 doesn't interpret VT100 escape codes.
For normal colored output, we use the colorama module to abstract this
away. To print text on the second-last line we call the appropriate
Win32 API functions directly (using the win32console module).
2018-03-25 15:57:50 -07:00
Samuel Sadok
0784bd3413
move test-rig.yaml to tools/
2018-03-23 20:21:25 -07:00
Samuel Sadok
3373ce29a8
more USB and discovery fixes
2018-03-23 19:55:08 -07:00
Samuel Sadok
c547bb09a2
more USB and discovery fixes
2018-03-23 19:50:35 -07:00
Samuel Sadok
b5f47f045e
add automated test script
2018-03-23 19:50:07 -07:00
Samuel Sadok
153b904732
robustify python USB discovery/communication
2018-03-23 17:10:29 -07:00
Samuel Sadok
d71aa4ca8e
robustify python USB discovery/communication
2018-03-23 17:09:04 -07:00
Samuel Sadok
e77dc1697a
Merge branch 'sam_python_fixes' into sam_testing
2018-03-17 22:42:28 -07:00
Samuel Sadok
a0d440bff3
Merge branch 'devel' of github.com:madcowswe/ODrive into sam_python_fixes
2018-03-17 22:23:57 -07:00
Samuel Sadok
fcdbde2640
build for multiple configurations
2018-03-17 22:11:58 -07:00
Samuel Sadok
4404e0aa74
increase readability
2018-03-17 21:14:22 -07:00
Samuel Sadok
a2413e3469
robustify connect/reconnect via serial connection
2018-03-17 20:29:57 -07:00
Samuel Sadok
5104c3ad99
robustify connect and disconnect logic
2018-03-17 19:27:15 -07:00
Samuel Sadok
f4bded078f
make remote_endpoint_operation thread-safe
2018-03-17 18:27:24 -07:00
Samuel Sadok
3fbd2761ac
move liveplotter to odrive.utils, make explore_odrive work with IPython
2018-03-17 18:25:03 -07:00
Samuel Sadok
1c2cfd2923
[python tools] refactor device discovery and object creation
2018-03-16 22:43:21 -07:00
Samuel Sadok
3ea4b731b3
rename USBHaltException to ChannelDamagedException
2018-03-16 22:32:26 -07:00
Samuel Sadok
284a77eb1b
fix timeouts in DFU script
2018-03-16 22:05:19 -07:00
Samuel Sadok
8bf6793a86
make liveplotter not steal focus and terminate as expected
2018-03-15 17:56:14 -07:00
Samuel Sadok
0fd3b43a39
[python tools] use IPython.embed() by default
...
exmplore_odrive.py no longer needs to be executed with
"ipython -i explore_odrive.py" but can launch an embedded IPython
command prompt by itself. If IPython is not available, the script falls
back to checking for normal python interactive mode.
2018-03-15 17:55:26 -07:00
Samuel Sadok
81380fa9da
Merge branch 'devel' of github.com:madcowswe/ODrive into sam_python_fixes
2018-03-15 16:37:17 -07:00
Samuel Sadok
eab7cda53e
make liveplotter not steal focus and terminate as expected
2018-03-15 16:36:04 -07:00
Oskar Weigl
ea5b547bda
add functools printing for windows
2018-03-13 17:09:33 -07:00
Samuel Sadok
93913f3600
improve user experience when trying DFU on old firmware
2018-03-13 14:32:13 -07:00
Samuel Sadok
55e3df163d
silence irrelevant error message
2018-03-12 23:46:09 -07:00
Samuel Sadok
ab3af19018
add support for uint64_t to protocol
2018-03-12 23:43:16 -07:00
Samuel Sadok
82313713d8
[python tools] use IPython.embed() by default
...
exmplore_odrive.py no longer needs to be executed with
"ipython -i explore_odrive.py" but can launch an embedded IPython
command prompt by itself. If IPython is not available, the script falls
back to checking for normal python interactive mode.
2018-03-11 20:03:37 -07:00
Samuel Sadok
791f9e3e35
[python tools] improve detection of ODrive in DFU mode
...
The main thread of dfu.py now only waits for an ODrive
in DFU mode and then starts flashing. A background thread
is started to detect an ODrive in normal mode and send it
into DFU mode.
2018-03-11 19:48:36 -07:00
Samuel Sadok
db38055741
[python tools] add cancellation_token to find_any, add my_odrive.__channel__
2018-03-11 18:20:19 -07:00
Oskar Weigl
3ab44fb58d
make dfu run on windows
2018-03-05 20:36:46 -08:00
Oskar Weigl
dff77b4f1c
Merge branch 'devel' into sam_dfu
2018-03-04 02:58:40 -08:00
Oskar Weigl
8b0be90bca
Merge branch 'devel' into sam_nvm
2018-03-02 22:01:56 -08:00
Oskar Weigl
7cd68e0cff
move to tools
2018-03-02 15:38:18 -08:00
Oskar Weigl
2c8c712eda
Merge branch 'devel' into sam_nvm
2018-02-25 23:42:14 -08:00
Samuel Sadok
50436709db
Reorganize config parameters
...
All configurable parameters are now exposed on the protocol in objects called "[...].config". Those are the same parameters that are saved to NVM.
2018-02-25 19:59:29 -08:00
Oskar Weigl
225adb7e88
Merge branch 'devel' into DRV-error-readouts
2018-02-23 11:47:22 -08:00
Samuel Sadok
fdd5e0c65e
Allow specifying the serial number when updating the firmware via USB
2018-02-22 23:50:13 -08:00