Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fix branch with latest main. #337

Merged
merged 110 commits into from
Mar 13, 2025
Merged
Changes from 1 commit
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
6dd1b20
Initial commit of AS5048B encoder driver.
tkevinbest Sep 17, 2024
848b086
Merge pull request #275 from tkevinbest/integration
tkevinbest Sep 17, 2024
ed155fc
Added tests for state_machine.py and compiled_controller.py
shreyhas Oct 29, 2024
5f833c3
added tests for robots and sensors modules. improved logging tests. c…
esharnow Oct 29, 2024
fb971f8
Fix: resolved issues with __ne__ operator and _custom_data attribute
shreyhas Oct 29, 2024
aba3353
Added function to retrieve complete custom data dictionary
shreyhas Oct 30, 2024
f31798c
Added test cases for state_machine.py
shreyhas Oct 30, 2024
ed1f0b8
Fixed codestyle errors
shreyhas Oct 30, 2024
9833539
Updated coverage.svg
shreyhas Oct 30, 2024
6fece5a
Changed output tupe of get_all_custom_data function
shreyhas Oct 30, 2024
b9f967d
added tests for imu.py
esharnow Oct 31, 2024
06c5928
added tests for robots and sensors modules. improved logging tests. c…
esharnow Oct 31, 2024
9e34712
:arrow_up: Bump actions/setup-python from 5.2.0 to 5.3.0
dependabot[bot] Nov 1, 2024
90ac205
:arrow_up: Bump actions/cache from 4.0.2 to 4.1.2
dependabot[bot] Nov 1, 2024
d41fb67
:arrow_up: Update pyupgrade requirement from ^2.29.1 to >=2.29.1,<4.0.0
dependabot[bot] Nov 1, 2024
afbe704
:arrow_up: Update pytest-cov requirement from >=3,<5 to >=3,<6
dependabot[bot] Nov 1, 2024
5dab527
fixed issues with logging tests and ran codestyle
esharnow Nov 3, 2024
c919d6b
revert test_imu
esharnow Nov 3, 2024
eeaa0e1
Merge branch 'main' into integration
senthurayyappan Nov 4, 2024
2aa673b
Merge pull request #300 from esharnow/integration
senthurayyappan Nov 4, 2024
3dae168
Merge pull request #294 from shreyhas/main
senthurayyappan Nov 4, 2024
5e118c8
Fixed codestyle and minor lint errors.
senthurayyappan Nov 4, 2024
f6b9528
added tests for imu.py. fixed missing abstractmethod data function. i…
esharnow Nov 7, 2024
49f2983
Merge pull request #302 from esharnow/integration
senthurayyappan Nov 7, 2024
6443978
Merge pull request #299 from neurobionics/dependabot/pip/pytest-cov-g…
senthurayyappan Nov 11, 2024
e09058f
Merge pull request #298 from neurobionics/dependabot/pip/pyupgrade-gt…
senthurayyappan Nov 11, 2024
5f63bf4
Merge pull request #296 from neurobionics/dependabot/github_actions/a…
senthurayyappan Nov 11, 2024
1d44790
Merge pull request #295 from neurobionics/dependabot/github_actions/a…
senthurayyappan Nov 11, 2024
dd926f9
Switching to ruff and mkdocs.
senthurayyappan Nov 13, 2024
108f5ae
Switching from dataclasses to enums for units.
senthurayyappan Nov 13, 2024
e8d745b
Initial hardware test script for position, current, voltage, & torque…
shreyhas Nov 13, 2024
6cfbcd9
Commiting files without pre-commit to check workflows.
senthurayyappan Nov 13, 2024
73d383b
Removing old workflows.
senthurayyappan Nov 13, 2024
7047a53
Adding all feature branches to main workflow
senthurayyappan Nov 13, 2024
46e9f21
Removed py3.8 from workflows and added docs-deploy.
senthurayyappan Nov 13, 2024
195da86
Fixed some ruff errors.
senthurayyappan Nov 14, 2024
a2945a7
Fixed all ruff errors.
senthurayyappan Nov 14, 2024
4c250ca
Fixed some mypy errors.
senthurayyappan Nov 14, 2024
35c5028
Fixed some more mypy errors.
senthurayyappan Nov 15, 2024
e49c771
Fixed typo.
senthurayyappan Nov 18, 2024
554e09c
Fixed all mypy errors. Ignored tmotor and moteus files.
senthurayyappan Nov 20, 2024
ba56f3f
Major bug fix to logger class. CSV files and log paths are respected …
senthurayyappan Nov 21, 2024
8e825ee
Major fixes to unit tests.
senthurayyappan Nov 21, 2024
0337dc0
Implemented some abstract methods in MockActuator class.
senthurayyappan Nov 21, 2024
9346372
Minor mypy fixes.
senthurayyappan Nov 21, 2024
7429226
Minor fixes to docs and pyproject.toml
senthurayyappan Nov 21, 2024
ce1e05f
Modified flexsea dep condition.
senthurayyappan Nov 21, 2024
78323c2
Unit test fixes for py3.11 and py3.12
senthurayyappan Nov 21, 2024
a0d592c
Added --force to push docs to gh-deploy
senthurayyappan Nov 21, 2024
399dd7e
Fixed FSM conflict.
senthurayyappan Nov 21, 2024
479dbfe
Merge pull request #309 from neurobionics/feature/documentation
senthurayyappan Nov 21, 2024
9033ea0
Adding --force to gh-deploy.
senthurayyappan Nov 21, 2024
9627848
Merge branch 'main' of https://github.com/shreyhas/opensourceleg
shreyhas Jan 31, 2025
d682c0e
Saving local changes
shreyhas Feb 3, 2025
8339701
Added sensors docstrings
shreyhas Feb 3, 2025
740888e
Added logging docstrings
shreyhas Feb 3, 2025
c1f0ec5
Added docstrings
shreyhas Feb 3, 2025
381b270
docs: added docstrings with examples
shreyhas Feb 17, 2025
9f32761
style: fixed style
shreyhas Feb 17, 2025
38d216b
fix: use soft realtime clock instead of while loops
senthurayyappan Feb 19, 2025
49792a6
feat: added heirarchical structure for documentation
shreyhas Feb 20, 2025
0a88760
docs: removed old doc formatting
shreyhas Feb 20, 2025
824d4ff
docs: modified docstrings to function with mkdocs
shreyhas Feb 20, 2025
52559ac
docs: updated examples and navigation structure
shreyhas Feb 24, 2025
7ff1fc9
docs: fixed pre-commit errors
shreyhas Feb 24, 2025
9d0089c
docs: fixed type: ignore error
shreyhas Feb 24, 2025
e977d94
Merge pull request #316 from shreyhas/feature/documentation
senthurayyappan Feb 24, 2025
2dff6be
Merge branch 'main' into feature/documentation
senthurayyappan Feb 26, 2025
4d41ba9
fix: remove duplicate LogLevel initialization and minor mypy errors
senthurayyappan Feb 26, 2025
ecdbd77
fix: file_name was set to empty string in set_file_name method
senthurayyappan Feb 26, 2025
5553096
Merge pull request #320 from neurobionics/feature/documentation
senthurayyappan Feb 26, 2025
551a84e
feat: add thread safety to logger
senthurayyappan Mar 5, 2025
42da482
fix: modify tutorial scripts to follow a similar pattern across vario…
senthurayyappan Mar 5, 2025
a72dc9b
fix: switch to command_motor_impedance for new Dephy API instead of c…
senthurayyappan Mar 5, 2025
91d1e6b
fix: required control modes for methods are not set via an internal m…
senthurayyappan Mar 5, 2025
dd9c9d4
fix: resolve ruff and mypy errors
senthurayyappan Mar 5, 2025
abda2b9
fix: no more zero division error in time/srtl
senthurayyappan Mar 6, 2025
9646620
feat: include encoder map calls to actuators
senthurayyappan Mar 6, 2025
233a6ab
fix: wait for user input before starting to home the joint
senthurayyappan Mar 6, 2025
1d2fc08
fix: handle scenario where actuator does not have a make_encoder_map …
senthurayyappan Mar 10, 2025
a0d80d7
fix: unit tests are now compatible with new logger setup
senthurayyappan Mar 10, 2025
d56d8dc
misc: minor fixes to osl and safety.
senthurayyappan Mar 10, 2025
9edbea5
Merge branch 'main' of https://github.com/neurobionics/opensourceleg
senthurayyappan Mar 10, 2025
c53e6a8
fix: use if conditions instead of asserts
senthurayyappan Mar 11, 2025
3a07c5f
fix: inherit from encoder base
senthurayyappan Mar 11, 2025
1bbc70e
fix: rename set_zero to set_zero_position and use logger instead of p…
senthurayyappan Mar 11, 2025
61ac3be
misc: fix safety test log assert
senthurayyappan Mar 11, 2025
4487615
misc: switch to Union for type def to be compatible with py3.9
senthurayyappan Mar 11, 2025
c50992d
Update opensourceleg/utilities/utilities.py
senthurayyappan Mar 11, 2025
c1caa5c
Update opensourceleg/sensors/encoder.py
senthurayyappan Mar 11, 2025
3ffa974
misc: fix spelling errors
senthurayyappan Mar 11, 2025
d3b6e50
Merge pull request #325 from neurobionics/feature/ams-encoder-support
senthurayyappan Mar 11, 2025
8eed688
fix: update method signature now matches the entire library; fix #307
senthurayyappan Mar 11, 2025
43bf78a
fix: add methods to set update parameters separately
senthurayyappan Mar 11, 2025
2126f41
misc: docstring fix
senthurayyappan Mar 11, 2025
9a61ea2
Merge pull request #326 from neurobionics/feature/ams-encoder-support
senthurayyappan Mar 11, 2025
f6aec54
misc: Update README
senthurayyappan Mar 11, 2025
3430b29
misc: update README
senthurayyappan Mar 11, 2025
5ff0aa1
fix: remove all references to knee, ankle, and impedance parameters
senthurayyappan Mar 11, 2025
95c0325
fix: remove data and use args, kwargs--wild west approach
senthurayyappan Mar 11, 2025
0e9fcaf
feat: add methods to scale state machine
senthurayyappan Mar 11, 2025
0fd091c
feat: add iterators and with context
senthurayyappan Mar 11, 2025
ac3c929
misc: rename control to controllers and compiled_controller to compiled
senthurayyappan Mar 12, 2025
6c38e42
fix: add gear ratio as a global var and add method to assign stream t…
senthurayyappan Mar 12, 2025
54b65b8
feat: upgrade fsm to support general use cases
senthurayyappan Mar 12, 2025
dc36bd1
fix: docs path fix and removed old fsm tests
senthurayyappan Mar 12, 2025
c1fe887
fix: remove exit state; add warning before overwriting initial state;…
senthurayyappan Mar 13, 2025
7b65813
fix: revert controllers to control
senthurayyappan Mar 13, 2025
1b76710
fix: add more info to add_transition and update methods' docstrings a…
senthurayyappan Mar 13, 2025
a4c07de
Merge pull request #328 from neurobionics/327-state-machine
tkevinbest Mar 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update opensourceleg/sensors/encoder.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
  • Loading branch information
senthurayyappan and Copilot authored Mar 11, 2025
commit c1caa5c1c68021393b7e832fbb1a71d774ac0f2a
3 changes: 1 addition & 2 deletions opensourceleg/sensors/encoder.py
Original file line number Diff line number Diff line change
@@ -264,8 +264,7 @@ def set_zero_position(self) -> None:
max_value = from_twos_compliment(self.encoder_output, 14)
mid_value = (min_value + max_value) // 2
self.zero_position = to_twos_compliment(mid_value, 14)
LOGGER.info("[SET] Zero registers:", self.zero_position)

LOGGER.info(f"[SET] Zero registers: {self.zero_position}")
@property
def diag_compH(self) -> bool:
"""
Loading