Quote:
Originally Posted by DarthMaulCIS
Why wouldn't it work in TeleOp?
|
Teleop is called by Robot Main each time the Driver Station sends a packet of data, 50 times per second. It's supposed to quickly do its job and be done. If it doesn't run to completion before the next DS packet arrives, it'll start tripping the system communication watchdog and your ability to control the robot will suffer.
Using a long-running loop, or waiting for an event to occur, should not be done in Teleop.