From bb8e17631bad7efb8f6fac10558970764b34c0a9 Mon Sep 17 00:00:00 2001 From: David Vo Date: Sat, 27 Jul 2024 21:48:24 +1000 Subject: [PATCH] magicbot: Document tunable and feedback changes --- magicbot/magic_tunable.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/magicbot/magic_tunable.py b/magicbot/magic_tunable.py index bd78b34..1e605bd 100644 --- a/magicbot/magic_tunable.py +++ b/magicbot/magic_tunable.py @@ -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 @@ -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)