We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a56077e commit fa08017Copy full SHA for fa08017
magicbot/magic_tunable.py
@@ -114,6 +114,14 @@ class Component:
114
@kP.set_callback
115
def set_kP(self, value: float) -> None:
116
self.pid.setP(value)
117
+
118
+ .. note::
119
+ The callback will be called on the NetworkTables I/O thread
120
+ (not the main robot thread).
121
122
+ .. warning::
123
+ This only supports instance methods on the same object as the tunable.
124
125
"""
126
self._update_cb = callback
127
0 commit comments