Commit Graph
3520 Commits
Author SHA1 Message Date
Torbjørn Ludvigsen 58a6567f83 Stands still upon switching to position mode via can 2022-04-07 15:10:25 +02:00
Torbjørn Ludvigsen d272fbe2b4 Puts fmodf_pos back into the steps_ assignment 2022-04-07 15:10:25 +02:00
Torbjørn Ludvigsen ae262e4cd1 Sets steps_ in CANSimple::set_input_pos_callback
... because otherwise, the effect of the callback is canceled by an
assignment in the main update() loop, that calculates input_pos
based on steps_, if we're in step/dir mode.

- Fixes a steps_ underflow/wrapping bug
2022-04-07 15:10:25 +02:00
samuelsadok daa089c3db Merge pull request #682 from odriverobotics/error-flags
Add back subcomponent error flags
2022-04-05 13:11:54 +02:00
Samuel Sadok cc7bbd47f8 add back subcomponent error flags
These flags were previously removed in 5661a3b5ed
2022-04-05 13:10:17 +02:00
Paul Guenette 6ab5807428 Fix get_iq_callbacks function 2022-04-01 13:04:39 -04:00
samuelsadok 22be53cf5f Merge pull request #679 from thatcomputerguy0101/can_example_patch
Can example patch
2022-03-23 12:42:49 +01:00
thatcomputerguy0101 8b37784e8c Fix current_state in can_example.py
The documentation, CAN doc file, and firmware all indicate that the current state is only one byte of the heartbeat message. This file used to read four bytes as the state on line 21, but only one byte on line 49. This PR adjusts line 21 so that it only uses one byte, making this example work. Otherwise, it incorrectly reads the flags that occupy the next three bytes as part of the state, which can cause the idle state to never be recognized.
2022-03-21 21:28:38 -04:00
Paul Guenette 7ce096e5a8 Fix minor docs typo 2022-03-10 20:12:28 -05:00
Paul Guenette 5148dd0d69 Merge branch 'master' into devel 2022-03-07 21:28:45 -05:00
nick-a-schneider 9ddf685791 Merge pull request #678 from odriverobotics/docs/api_detail
Major improvements to API reference documentation
2022-03-07 21:19:52 -05:00
Paul Guenette 122aeda5e3 Major improvements to API reference documentation 2022-03-06 16:03:39 -05:00
samuelsadok b9739b9f16 Merge pull request #676 from monomente/patch-1
Update README.md
2022-02-23 11:51:43 +01:00
monomente 6d84edb1a3 Update README.md
fixed broken link
2022-02-22 18:47:12 -08:00
samuelsadok 7c5ebc0c8d Merge pull request #671 from szeder/dockerfile-fixes
Two Dockerfile fixes
2022-02-21 13:55:23 +01:00
SZEDER Gábor e75f7455c4 Dockerfile: generate autogen/version.c only once
Since c5720564 (Force version to be regenerated on each compile,
2021-06-01) `autogen/version.c` must be generated during the build
process, but the build instructions in the `Dockerfile` have not been
updated accordingly.  Since then two commits [1] on separate branches
updated `Dockerfile` to deal with the missing file, and now
`autogen/version.c` is generated twice during a containerized build.

Remove all redundant commands from `Dockerfile`'s `CMD` instruction to
generate `autogen/version.c` and its subdirectory only once.

[1] 8e9745a6 (Add version.c generation to dockerbuild and actions,
              2021-11-02)
    7f013d6d (Fixed dockerbuild.sh, now run as user (instead
              of root) and fixed the autogeneration of version.c,
              2021-09-16)
2022-02-20 20:25:08 +01:00
SZEDER Gábor 22226faef4 Dockerfile: avoid caching issues with apt-get update and install
The `Dockerfile` uses separate `RUN` instructions for each `apt-get`
command.  Docker's documentation considers this as an anti-pattern,
because it can lead to caching issues [1].

Follow Docker's advice, and combine all `apt-get` invocations into a
single `RUN` instruction with an &&-chaned list of commands.  This
makes it rather hard to tell which command produces which output, so
insert a `set -x` at the beginning of the command chain to generate a
trace of the executed commands.

[1] Each `RUN` instruction, including subsequent `RUN apt-get update`
    and `RUN apt-get install` instructions create separate layers that
    are stored in the Docker cache.  If someone were to modify the
    list of list of packages to install, then Docker would re-use the
    layer created by the prior `RUN apt-get update` instruction,
    meaning that `apt-get install` would use an outdate package list.
    This can lead to outdated packages to be installed, or a failure
    if the outdated version is not present anymore in the package
    repository.

    https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
2022-02-20 19:34:48 +01:00
Paul Guenette b96135774d Make mention of the torque_constant value in Torque Control docs 2022-02-15 22:30:00 -05:00
samuelsadok bfbf671541 [docs] fix enum values 2022-02-14 11:18:26 +01:00
nick-a-schneider 91f8474507 Merge pull request #665 from odriverobotics/docs/torque_ctrl
Additional docs about torque_mode_vel_limit
2022-02-14 00:05:32 -05:00
nick-a-schneider 24bb01f8d9 Merge pull request #669 from odriverobotics/sphinx-docs-update
Motor and encoder guides in sidebar
2022-02-13 23:17:38 -05:00
nick-a-schneider 0582d9ac46 Motor and encoder guides in sidebar 2022-02-13 23:12:45 -05:00
Paul Guenette 6bb461bdb8 Additional docs about torque_mode_vel_limit 2022-02-10 23:00:43 -05:00
nick-a-schneider 2ae9e99038 Merge pull request #664 from odriverobotics/feature/can_fix_signal
Fix axis_state signal length
2022-02-10 09:27:00 -05:00
Paul Guenette 20f3028dd3 Fix axis_state signal length 2022-02-09 18:11:19 -05:00
nick-a-schneider 29c1bd54f5 Merge pull request #663 from odriverobotics/sphinx-docs-update
remove negative current note
2022-02-08 22:54:21 -05:00
nick-a-schneider 658dd89da2 remove negative current note 2022-02-08 22:16:14 -05:00
nick-a-schneider e07919c171 Merge pull request #662 from odriverobotics/sphinx-docs-update 2022-02-08 12:49:11 -05:00
nick-a-schneider d0cf1647f0 OSX->macOS 2022-02-08 12:10:03 -05:00
nick-a-schneider f578973d31 moved reST into docs, fixed API table 2022-02-08 10:53:03 -05:00
Paul Guenette a9d7d5497a Merge branch 'master' into devel 2022-02-04 19:06:06 -05:00
Paul Guenette 8ece19f0b9 Fix input mode "Tuning" case in API docs 2022-02-04 19:05:49 -05:00
samuelsadok a90ee654a4 Merge pull request #661 from odriverobotics/feature/spi_fixes
Implement minor fixes for SPI encoders
2022-02-04 10:20:53 +01:00
Samuel Sadok 7e4dbb6c80 implement autopublish for new sphinx docs 2022-02-03 20:04:55 +01:00
Paul Guenette 0aca4911e2 Increase error threshold for SPI encoders 2022-02-02 19:09:46 -05:00
Paul Guenette ad648dd40a Reduce SPI slew rate to reduce ringing 2022-02-02 19:09:05 -05:00
Paul Guenette 78ba7884fe Increase comms speed with encoders to match DRV8301 2022-02-02 19:08:50 -05:00
nick-a-schneider 1884d15497 Merge pull request #656 from odriverobotics/sphinx-docs-update
bold table, eqn formatting, homepage, CAN msgs
2022-01-28 14:33:15 -05:00
nick-a-schneider 5d5664cae2 bold table, eqn formatting, homepage, CAN msgs 2022-01-27 15:57:00 -05:00
nick-a-schneider 2510f6c259 Merge pull request #655 from odriverobotics/sphix-docs-update
extra space broke hyperlink
2022-01-26 11:48:16 -05:00
nick-a-schneider ccb3dc6239 extra space broke hyperlink 2022-01-26 11:45:09 -05:00
samuelsadok 8691e883e3 fix memory leak in libfibre 2022-01-26 11:47:14 +01:00
samuelsadok 27aefbbb02 Merge pull request #635 from odriverobotics/endstop_fixes
Fix synchronization-related endstop bugs
2022-01-24 13:11:18 +01:00
Paul Guenette aa255cb9d3 Merge pull request #650 from odriverobotics/sphinx-docs
Sphinx docs
2022-01-23 13:43:34 -05:00
nick-a-schneider 150c230bec included updates from past two months 2022-01-23 11:26:30 -05:00
Paul Guenette c0af109fae Ignore docs/reStructuredText/_build/ 2022-01-22 17:58:16 -05:00
Paul Guenette 6f3a88592e Update changelog 2022-01-22 17:53:48 -05:00
Paul Guenette 7402cf8044 Reset trajectory_done_ during homing to fix #634 2022-01-22 17:48:41 -05:00
Paul Guenette d1bb0049bf Update endstops before checking for errors 2022-01-22 17:48:41 -05:00
Paul Guenette d438607d7d update changelog 2022-01-22 17:48:41 -05:00