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 ee2ba91Copy full SHA for ee2ba91
magicbot/magic_tunable.py
@@ -114,6 +114,13 @@ 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
self._update_cb = callback
126
0 commit comments