Hello -
I've got this code which sets the 'shooter' motor to full forward speed for 1 second when button 2 is pressed on joystick 1. Now, I had this within teleop, but it caused data loss due to the timing. So, as advised, I put it within the periodic tasks.
Now my issue is how do I tell teleop to use code within periodic tasks? When the code was within teleop, it functioned as expected (less the data loss), but when it's inside periodic tasks, it doesn't work at all.
Any help? Thanks.