You can take a look at this example from kb.vex.com
https://kb.vex.com/hc/en-us/articles/360035593172-Tank-Control-VEX-C-
Also, there are several video tutorial that may be helpful: