Programming Drivetrain in PROS

I have this code I made in PROS that I think should work on our robots drivetrain. I don’t have the robot with me and won’t for the time being, but based on what I have here will it work the way I’m thinking.

float x, y, x2, Left_SideVel, Right_SideVel;
//DRIVER CONTROL FUNCTIONS
void setDriveMotors() {
  y = controller.get_analog(pros::E_CONTROLLER_ANALOG_LEFT_Y);
  x = controller.get_analog(pros::E_CONTROLLER_ANALOG_LEFT_X);
  x2 = controller.get_analog(pros::E_CONTROLLER_ANALOG_RIGHT_X);
  Left_SideVel = (y + x) + x2 * 0.5;
  Right_SideVel = (y - x) + x2 * -0.5;
  leftside.move(Left_SideVel);
  rightside.move(Right_SideVel);
}