I’m sure the issue is between chair and keyboard, but I’m having an issue in autonomous and getting the LL2+ to do what I want (LOL).
Sorry, can’t post code at the moment, but we’re using the LL2+ to get target tx and ty to home in on target. In teleop, the code works great - it’s a button-press (and a huge leap for our team, so thanks to LL team for the great product!)
I know, not ideal to ask for help with programming and not post the code, but for an idea of how I approached it: I’m using a timed frame sequence for everything and everything, except for data to/from the LL2+ in the code works (backing up, spinning up shooter, feeding power cells, etc).
We are using networktables to send commands to LL2+ to invoke vision processor mode, then read tx and ty to feed PID controls to steer the robot. From the driver station I can tell the camera never switches to vision from driver camera, however once it goes to teleop, the button-press targeting works just fine.
I could be that I accidentally have a NT read instead of NT write somewhere, so I guess I’m just asking for pointers to help me troubleshoot when I get a chance. I though that it might be an issue with using Networktables in autonomous and perhaps that I need to turn them into global variables instead, but I’m just spitballing. Any pointers would be greatly appreciated.
Thanks in advance