pioneers / runtime

Firmware for the PiE kit robots and devices
7 stars 2 forks source link

[NET_HANDLER] Block dawn enter_auto and enter_teleop with Shepherd connected #203

Closed benliao1 closed 3 years ago

benliao1 commented 3 years ago

Small feature, probably like five lines of code in net_handler. If Shepherd is connected to the robot, Dawn should not be able to change the run mode of the robot to AUTO or TELEOP (Dawn can enter idle though i.e. the student can E-Stop the robot while Shepherd is connected if they want.)

This is to prevent students from switching the run mode of the robot while Shepherd is connected (when the robot is running a match).

We should write a test case to test this behavior though!