Need Help with Autonomous

So… I need help creating a simple autonomous code that allows my robot to move forwards. It is a two motor drive. The two motors are called Left and Right. Can anyone help me?

Thank you in advance!!

Here is a basic example of a code


What this does is use a non blocking spin command to make the motors move. The sleep after it controls the amount of time this action happens for in milliseconds.

Ok. Thank You for the info!