How to code robot in VEXcode V5 Text to move forward and backward using driver control

Hello. I have a problem coding my robot to move forward and backward using the joysticks on my controller. I’ve been trying to find examples of code, but all of them for autonomous, not driver control. Can anyone help me out?

iq not have v5

This is what I have been using
//Drive Control
//Set the left and right motor to spin forward using the controller Axis values as the velocity value.
FrontLeftDr.spin(vex::directionType::fwd, Controller1.Axis3.value(), vex::velocityUnits::pct);
BackLeftDr.spin(vex::directionType::fwd, Controller1.Axis3.value(), vex::velocityUnits::pct);
FrontRightDr.spin(vex::directionType::fwd, Controller1.Axis2.value(), vex::velocityUnits::pct);
BackRightDr.spin(vex::directionType::fwd, Controller1.Axis2.value(), vex::velocityUnits::pct);

Just ask if you want the whole code

I’m new to this and I can’t find many examples for driver mode, you can provide me with the code

Switch the DriveMotorA and DriveMotorB for your two motors

DriveMotorA.spin ( directionType::fwd, (Controller1.Axis4.value() + Controller1.Axis3.value())/2, velocityUnits::pct);
DriveMotorB.spin ( directionType::fwd, (Controller1.Axis4.value() - Controller1.Axis3.value())/2, velocityUnits::pct);
the /2 is for 50% speed which is what I have currently