Oskar Weigl
48c8ad0990
Merge branch 'master' into devel
2018-04-08 20:15:59 -07:00
Samuel Sadok
338e9759ce
fix how enums are exposed on the protocol
...
Previously the assumption was made that the compiler
uses 32 bits for each enum value. This assumption was
invalid and meant that when reading/writing from
control_mode you would also read/write to enable_step_dir.
2018-04-08 14:06:30 -07:00
Samuel Sadok
95994309ae
fix bug where an invalid motor config could be loaded
...
Before this commit, if the NVM is deemed valid and but the subsequent config load fails (e.g. because of a checksum mismatch), the motor config could be left in an undefined state.
Also a variable user_config_loaded is added to indicate whether the device is using user-saved config or factory defaults.
2018-04-07 12:49:29 -07:00
Samuel Sadok
6d697b08fa
replace UUID_... property by serial_number
2018-03-12 23:45:17 -07:00
Samuel Sadok
1489083f19
Merge branch 'devel' into sam_dfu
2018-03-12 22:44:59 -07:00
samuelsadok
764fb26b18
Merge branch 'devel' into sam_dfu
2018-03-11 21:39:56 -07:00
Samuel Sadok
6a1cd8ce5f
Merge branch 'devel' of github.com:madcowswe/ODrive into sam_cubemx_cleanup
2018-03-09 20:55:30 -08:00
Oskar Weigl
01aedc2eea
Update commands.cpp
2018-03-05 17:34:12 -08:00
Samuel Sadok
996c65bccc
Merge branch 'devel' of github.com:madcowswe/ODrive into sam_cubemx_cleanup
2018-03-04 19:01:04 -08:00
Oskar Weigl
dff77b4f1c
Merge branch 'devel' into sam_dfu
2018-03-04 02:58:40 -08:00
Oskar Weigl
898d9c64b4
fix saving of calibrated flag
2018-03-02 23:05:40 -08:00
Oskar Weigl
8b0be90bca
Merge branch 'devel' into sam_nvm
2018-03-02 22:01:56 -08:00
Oskar Weigl
5d87b7602f
make timing log static
2018-03-01 19:09:52 -08:00
Oskar Weigl
2c8c712eda
Merge branch 'devel' into sam_nvm
2018-02-25 23:42:14 -08:00
Samuel Sadok
bbb508721f
Add build config options to build script
...
An example of what options can be used can be seen in tup.config.default.
2018-02-25 23:35:29 -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
Paul Guenette
e52f41f3fe
Merge remote-tracking branch 'madcowswe/devel' into feature/anticogging_usb_function
2018-02-24 20:23:24 -05:00
Oskar Weigl
12c72cf284
change how default configs are done for now
2018-02-23 23:36:46 -08:00
Samuel Sadok
dde6ba5a57
Add DFU over USB
...
`make dfu` now invokes a python script which puts the ODrive into DFU mode uploads the .hex file to the device via USB.
2018-02-22 19:49:10 -08:00
Samuel Sadok
b672d8e0ef
Add persistent storage of certain motor parameters.
...
The persistent storage can be controlled through the "save_config" and "reset" RPC functions. If a valid configuration is present, it's automatically loaded on startup. For now only a few parameters are saved (see config.cpp).
2018-02-22 19:08:43 -08:00
Paul Guenette
48cbcc7d37
Add usb command for anticogging
2018-02-21 20:41:00 -05:00
Quincy Jones
f75799fd3c
Fix a naming bug on drv_error -> drv_fault
2018-02-21 14:23:12 -06:00
Quincy Jones
ef0f8dbf85
Add microsecond delay functions.
...
Add DRV register/fault status reporting.
2018-02-21 13:41:42 -06:00
Oskar Weigl
69d63a6e79
Merge branch 'devel' into liveplotter
2018-02-11 21:39:05 -08:00
Oskar Weigl
6810e52d8d
expose Iq setpoint and measured separatly
2018-02-03 19:09:49 -08:00
Oskar Weigl
a7c8a85d30
expose motor_dir
2018-01-26 22:59:21 -08:00
fluture
2d0ab77734
Fixed sending all commands to motor 0
2018-01-16 23:31:44 -08:00
Cristian Fluture
6cefbf6e62
Added 3 endpoints (UUID_0, UUID_1, UUID2) to expose the device UUID
2018-01-14 23:38:21 -08:00
Oskar Weigl
c14bc7b871
add Iq control effort report
2017-12-19 20:56:36 -08:00
Oskar Weigl
f301d3cac4
change HW version to v3.4
2017-12-10 16:16:35 -08:00
Oskar Weigl
d39b58a02e
Improve documentation, allow UART on v3.3 and higher only
2017-11-26 16:08:06 -08:00
Samuel Sadok
e5fb7a8bf8
Merge branch 'devel' of github.com:madcowswe/ODrive into sam_protocol
2017-11-20 10:06:05 +01:00
Samuel Sadok
f881f60207
update communication documentation
2017-11-13 22:41:14 +01:00
Samuel Sadok
d52686cd41
miscellaneous protocol updates
...
add back support for legacy protocol on UART
add defines in commands.h for easy selection of protocols
new protocol: use semaphores for sending and drop response after 10ms
minor typing fixes
2017-11-13 17:26:31 +01:00
Samuel Sadok
560b5d8699
Merge branch 'devel' of github.com:madcowswe/ODrive into sam_protocol
2017-11-13 12:28:02 +01:00
Oskar Weigl
4ed06c8a57
make first version of liveplotter
2017-11-09 21:10:40 -08:00
Oskar Weigl
49754af4cc
add comments
2017-11-08 23:53:15 -08:00
Oskar Weigl
2069462354
some minor formating and naming
2017-11-07 20:10:34 -08:00
Samuel Sadok
a4cc254b2b
filled complete endpoint table for new protocol
...
(ok we need an autogenerator for this)
2017-11-06 20:30:33 +01:00
Samuel Sadok
9fb0c9a839
minor comment clean-ups
2017-11-06 19:13:06 +01:00
Samuel Sadok
8523c40832
fix UART protocol, enable legacy protocol coexistence on USB port
2017-11-06 18:31:26 +01:00
Samuel Sadok
3cba81e6f7
make remote precedure calls work
2017-11-06 14:38:15 +01:00
Samuel Sadok
ba46e5fb29
update test_communication.py to new backend, deferred USB processing, move CRC16 to stream based layer, some protocol refactoring
2017-10-30 23:39:21 +01:00
Oskar Weigl
692e9239fa
add comments
2017-10-28 21:06:06 -07:00
Samuel Sadok
d02f5fe808
make float read/write work
2017-10-24 00:51:14 +02:00
Samuel Sadok
c19a693fe9
almost make new binary protocol work with python (up to fetching and parsing the JSON)
2017-10-23 23:15:56 +02:00
Samuel Sadok
03854e3b35
fix USB
2017-10-23 09:22:14 +02:00
Samuel Sadok
db411bfa50
add binary protocol with CRC and acks
2017-10-16 19:30:00 +02:00