Okay first time posting and I don’t know what I’m doing, but I have a problem. One thing I’d like to note is my team put the motors on backwards because our team name is ScrewBalls so they thought it’d would fit and they refuse to fix them. Anyway, the controller’s controls are inverted. I’ve put in this code to fix it.
using namespace vex;
vex::motor LeftMotor(vex::PORT1, vex::gearSetting::ratio18_1, false);
vex::motor RightMotor(vex::PORT10, vex::gearSetting::ratio18_1, true);
vex::controller Controller1 = vex::controller();
LeftMotor.spin(directionType::fwd,(Controller1.Axis3.value() + Controller1.Axis4.value())/2, velocityUnits::pct);
RightMotor.spin(directionType::fwd, (Controller1.Axis3.value() - Controller1.Axis4.value())/2, velocityUnits::pct);
The code fixes the controls for the joystick, moving forward and backwards, but it’s still inverted when trying to make the robot go left and right. I have no clue what to do. Can someone please help me.