Skip to content

Commit ecd8a4c

Browse files
committed
magicbot: Document tunable and feedback changes
1 parent 972fbf3 commit ecd8a4c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

magicbot/magic_tunable.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ def execute(self):
6060
you will want to use setup_tunables to set the object up.
6161
In normal usage, MagicRobot does this for you, so you don't
6262
have to do anything special.
63+
64+
.. versionchanged:: 2024.1.0
65+
Added support for WPILib Struct serializable types.
66+
Integer defaults now create integer topics instead of double topics.
6367
"""
6468

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

0 commit comments

Comments
 (0)