Skip to content

Commit 07fae51

Browse files
added the chassis heading_controller to the smart dashboard
1 parent 89d424e commit 07fae51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/chassis.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ def __init__(
250250
) -> None:
251251
self.imu = Pigeon2(0)
252252
self.heading_controller = PIDController(3.0, 0.0, 0.0)
253+
wpilib.SmartDashboard.putData(
254+
"Chassis heading_controller", self.heading_controller
255+
)
253256
self.heading_controller.enableContinuousInput(-math.pi, math.pi)
254257
self.snapping_to_heading = False
255258
self.heading_controller.setTolerance(self.HEADING_TOLERANCE)

0 commit comments

Comments
 (0)