I justed started trying to code my H drive and it’s not working. I think I know but I’m not sure how to fix it. I’m very new to coding in c++.
hDriveMotor.spin(forward, Controller1.Axis4.value(), vex::velocityUnits::pct);
leftDriveMotor.spin(forward, Controller1.Axis1.value(), vex::velocityUnits::pct);
rightDriveMotor.spin(reverse, Controller1.Axis1.value(), vex::velocityUnits::pct);
leftDriveMotor.spin(forward, Controller1.Axis3.value(), vex::velocityUnits::pct);
rightDriveMotor.spin(forward, Controller1.Axis3.value(), vex::velocityUnits::pct);
vex::task::sleep(20);
I think that it has something to do with the fact that I’m telling the left and right motors to spin two differnt times and the program just picks the first one. Am I right to be thinking like that? And how do I fix it?