Skip to content

Commit

Permalink
magicbot: Document tunable and feedback changes
Browse files Browse the repository at this point in the history
  • Loading branch information
auscompgeek committed Jul 27, 2024
1 parent cc64971 commit bb8e176
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions magicbot/magic_tunable.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ def execute(self):
you will want to use setup_tunables to set the object up.
In normal usage, MagicRobot does this for you, so you don't
have to do anything special.
.. versionchanged:: 2024.1.0
Added support for WPI Struct serializable types.
Integer defaults now create integer topics instead of double topics.
"""

# the way this works is we use a special class to indicate that it
Expand Down Expand Up @@ -229,6 +233,10 @@ class MyRobot(magicbot.MagicRobot):
especially if you wish to monitor WPILib objects.
.. versionadded:: 2018.1.0
.. versionchanged:: 2024.1.0
WPI Struct serializable types are supported when the return type is type hinted.
An ``int`` return type hint now creates an integer topic.
"""
if f is None:
return functools.partial(feedback, key=key)
Expand Down

0 comments on commit bb8e176

Please sign in to comment.