Samuel Sadok
e1ffdbd33d
fix Anaconda Python detection on Windows
...
Anaconda prints version information on stderr instead of stdout.
2020-07-31 10:50:06 +02:00
Rowan Goemans
1a0d6acace
- Refactored thermal and current lmiting sub-systems and introduced motor thermistor support.
...
- Added thermal errors to dump_errors call in odrivetool.
- Added function in odrivetool to set thermistor coefficients based on thermistor specs.
- Added documentation for users on how to connect and configure their own thermistors.
2020-07-17 14:09:47 +02:00
Samuel Sadok
219c818fdd
turn version.h into version.c
...
This speeds up the build process in many cases because this file is
refreshed on every build and by making it a code file much less off the
build graph depends on it.
2020-07-16 20:57:12 +02:00
Samuel Sadok
4100fff46a
Prevent python from using __pycache__ during build
...
Caching doesn't work well with the tup build system as tup acts offended
when a build task writes files outside of tup's root directory.
Particularly on Windows this manifests in errors like:
tup error: File '[...]/__pycache__/unicode_escape.cpython-38.pyc' was written to, but is not in .tup/db. You probably should specify it as an output
The option -B prevents python from using byte code cache.
2020-06-22 06:00:35 -07:00
Samuel Sadok
61bc1322d1
Add help text for missing dependencies
2020-06-10 13:20:17 +02:00
Samuel Sadok
f7c8a6ea94
Merge remote-tracking branch 'origin/devel' into feature/interface_autogen
2020-06-10 13:01:15 +02:00
Samuel Sadok
b6066eac01
fix windows compile
2020-06-05 14:55:20 +02:00
Samuel Sadok
592b5f48c7
fix compilation
...
improve Python3 install check, remove python string
interpolation which is not supported by older python
versions
remove string interpolation
2020-06-03 18:05:38 +02:00
Samuel Sadok
a874dcbbb9
Merge branch 'devel' into feature/interface_autogen
2020-06-02 21:26:22 +02:00
Samuel Sadok
6047c72014
remove stray line
2020-06-02 19:21:32 +02:00
Samuel Sadok
a755f27917
Fix hang on compile on Windows
...
Windows 10 includes since version 1903 a python stub which is supposed
to open the MS Store if python is invoked but not installed. However
when invoked from tup, the stub simply hangs without output.
With this change we first check the python version (something that the
Windows stub does not interer with) before we invoke it.
2020-06-02 16:54:28 -07:00
Samuel Sadok
6902fd6b34
rename Odrive interface to ODrive
2020-05-29 10:19:10 +02:00
Samuel Sadok
28f48e8fab
[interface autogen] remove hardcoded intf name
2020-05-25 18:11:16 +02:00
Samuel Sadok
a255ffd121
autogenerate enums.py
2020-05-25 18:11:16 +02:00
Samuel Sadok
149dcf7377
reenable ascii protocol
2020-05-18 14:44:37 +02:00
Samuel Sadok
e4d70a22b7
Initial implementation of interface autogenerator.
...
TODO:
- write to endpoints from float (for PWM/analog input)
- ascii protocol
2020-05-14 23:05:02 +02:00
Unknown
3d2d0f0e1a
Clean up and modernize axis task_chain
2020-04-27 15:27:43 -04:00
Unknown
fb46103498
Add doctest, fix drv8301 warning
2020-03-27 21:22:04 -04:00
Unknown
1bdea53ec8
Improve testability
2020-01-08 22:11:50 -05:00
Unknown
878566cba9
Correct parity calculation tests
2020-01-01 19:48:54 -05:00
Unknown
bb31f042da
Revert "Fix parity calculation"
...
This reverts commit 27b3c69e8e .
2020-01-01 19:47:27 -05:00
Unknown
27b3c69e8e
Fix parity calculation
2020-01-01 01:52:21 -05:00
Unknown
bb59c2640e
Add optional doctest test runner for unit testing
2019-12-31 23:16:02 -05:00
Paul Guenette
687cf5b877
Merge branch 'Endstops' into develop
2019-05-25 13:53:38 +02:00
Paul Guenette
9315c4e1c7
Write and test CAN getSignal function
2019-05-19 21:18:18 +02:00
Paul Guenette
d8b335fcb9
Merge branch 'feature/doctest' into feature/CAN
2019-05-19 19:27:20 +02:00
Paul Guenette
0598c2c995
Setup doctest
2019-05-16 00:03:37 +02:00
Paul Guenette
1e5b82ca8b
Merge branch 'devel' into Endstops
2019-04-23 21:48:43 +02:00
Paul Guenette
5fee14a378
Merge branch 'devel' into feature/CAN
2019-03-23 09:33:42 +01:00
Oskar Weigl
b8bcdb8fe3
reorder some stuff
2019-03-19 14:13:51 -07:00
Oskar Weigl
0e971fb73c
Merge pull request #318 from Wetmelon/backend_fixes
...
Backend fixes
2019-03-19 14:12:35 -07:00
Oskar Weigl
901311b582
add ODrive v3.6
2019-03-18 17:57:44 -07:00
Paul Guenette
b049e6f0eb
Add a config flag for debug builds. Build with -O2 by default
2019-03-17 20:25:38 +01:00
Unknown
a2ebb7085c
Merge branch 'devel' into Endstops
2018-10-06 13:33:21 -04:00
Unknown
82c21c6a03
Merge branch 'devel' into feature/CAN
2018-10-06 13:32:44 -04:00
Unknown
2431fd98c6
Start with CAN_SIMPLE protocol
2018-10-04 18:50:45 -04:00
Oskar Weigl
6c89460d88
Merge pull request #254 from madcowswe/fix-sincos
...
Fix rounding issue in arm_cos_f32
2018-09-30 19:13:53 -07:00
Oskar Weigl
ece2921316
add and rename our own copy of arm_sin_f32 and arm_cos_f32
2018-09-27 21:18:38 -07:00
Unknown
dc693ebd9c
Merge branch 'devel' into Endstops
2018-09-27 20:42:30 -04:00
Oskar Weigl
b3c7ca61e3
Merge branch 'devel' into traptraj
2018-09-27 13:00:16 -07:00
Oskar Weigl
7776d39cd0
add Wdouble-promotion warning
2018-09-26 22:07:47 -07:00
Unknown
9b0bc6f840
Make Endstops objects instead of structs in Axis
2018-09-08 18:25:51 -04:00
Unknown
03bf297bd8
Add TrapTraj to Axis and Controller. Add move_to_pos funciton
2018-09-01 23:39:31 -04:00
Unknown
3aeaedfe52
Add semicolon to class end, add file to tupfile.lua
2018-08-06 20:15:17 -04:00
Oskar Weigl
6ff4445770
Merge branch 'devel' into sam_fibre
...
Conflicts:
Firmware/Tupfile.lua
Firmware/fibre/cpp/include/fibre/protocol.hpp
Firmware/fibre/python/fibre/discovery.py
Firmware/fibre/python/fibre/usbbulk_transport.py
tools/odrive/dfu.py
tools/odrive/shell.py
tools/odrive/utils.py
tools/odrivetool
2018-06-08 19:30:21 -07:00
Oskar Weigl
d403bc5ff5
Merge branch 'devel' into sam_can
2018-06-06 23:39:03 -07:00
Oskar Weigl
2a7743ef0b
Merge branch 'devel' into fw4
2018-06-05 23:13:58 -07:00
Samuel Sadok
caacde7544
Replace ASCII protocol compile time setting with runtime setting
...
When enabled, the USB CDC interface of the ODrive will
run the ASCII protocol instead of the native protocol.
In that case the native protocol can still be used on
endpoints 0x03, 0x83.
Truly concurrent use is not tested and thus not recommended.
2018-05-14 15:50:01 -07:00
Samuel Sadok
c714f0ee49
fix function calls with arguments
2018-05-13 23:51:21 -07:00
Samuel Sadok
4bf7e987a5
apply ODrive native protocol updates to fibre and switch to fibre
2018-05-13 18:53:44 -07:00