From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Autonomous mode - only one side of drive train operates

We have a basic robot project testing the autonomous mode code - created a robot project (arcade drive).  The only change we made was to enable the disabled diagram and changed the values to 1 for left and right.  

When we run the code (on several different robots) - only one side runs.

We have tested this on several laptops - building and deploying to the two different robots.

0 Kudos
Message 1 of 2
(4,671 Views)

It sounds like you are thinking "left and right" == "X and Y" inputs on the arcade drive VI.  If you pass "1->X and 1->Y", you'll get exactly that... one side will drive and the other will be stopped.

If you want to give "left and right" you need to use the tank drive VI.  If you want to keep using arcade drive, you need to use -1 for y and 0 for x to drive forward at full speed.

Message 2 of 2
(3,027 Views)