Crazy things you programmers do

What are some of the crazy things that vex programmers do?

The programmer on our team brought a television from his house to our meeting so that he would have a larger screen to program on.

10 Likes

Our programmer accidentally coded the whole thing in Python while coding in VexCode.

Whenever he declared a variable named Straight, he’d comment //Not Jacob
Jacob being myself.

16 Likes

It was many years ago on the original VEX PIC controller, but I did see a student run out of program memory during the Elevation season.

12 Likes

My entire autonomous last season was composed of goto statements.

14 Likes

Me: go to the cube
Robot: what cube
Me: that cube
Robot: whaddya mean
Me: JUST GO TO THE CUBE DARNIT

16 Likes

Use code to break mechanical systems

15 Likes
  1. Eat food while coding
  2. Do something rad that takes up a ton of space
  3. Do something that does nothing that takes up a ton of space
  4. Do something that kills your robot processing because it is too big
  5. Yell at the builders because they are doing nothing
8 Likes

Yell at the builders when they try to position the robot in the beginning of the Match because they don’t even know where it goes on the field.

9 Likes

totally lost respect :slight_smile: [humor]

7 Likes

image

10 Likes

Spend more time trying to play never gonna give you up on the speaker than actually programming an auton

4 Likes

Oh Yes We Do!
Here is my second autonomous code:

//Autonomous 2
else if(autonomousSelect == 2){

  //Drive Forward A Bit
  if(counter == 1){
    setTime = 3900; //Time of the Task
    //Drive
    maxDriveSpeed = 40;//Max speed the drive can reach
    leftSideDistance = 1250;//In Ticks
    rightSideDistance = 1250;
    turnkI = 0.003;
    drivekP = 0.5;
    drivekD = 1;
    //Puncher
    anglePos = 'L'; //(H)igh flag, (L)ow flag
    shoot = false; //Shoot this run?
    //intake
    activateintake = true;
    //Caps
    CapPosition = 3;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
      int holdLeftSide = leftSideDistance;
      leftSideDistance = rightSideDistance;
      rightSideDistance = holdLeftSide;
    }
      rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }

  //Scrape, Back Up, and Shoot Low
  else if(counter == 2){
    setTime = 1000; //Time of the Task
    //Drive
    maxDriveSpeed = 40;//Max speed the drive can reach
    leftSideDistance = -500;//In Ticks
    rightSideDistance = -500;
    turnkI = 0.003;
    drivekP = 0.5;
    drivekD = 1;
    //Puncher
    anglePos = 'L'; //(H)igh flag, (L)ow flag
    shoot = true; //Shoot this run?
    //intake
    activateintake = true;
    //Caps
    CapPosition = 1;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
      int holdLeftSide = leftSideDistance;
      leftSideDistance = rightSideDistance;
      rightSideDistance = holdLeftSide;
    }
      rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }

  //Back Up and shoot high
  else if(counter == 3){
    resetdistances = false;
    setTime = 1000; //Time of the Task
    //Drive
    maxDriveSpeed = 40;//Max speed the drive can reach
    leftSideDistance = -1200;//In Ticks
    rightSideDistance = -1200;
    turnkI = 0.005;
    drivekP = 0.5;
    drivekD = 1;
    //Puncher
    anglePos = 'H'; //(H)igh flag, (L)ow flag
    shoot = true; //Shoot this run?
    //intake
    activateintake = true;
    //Caps
    CapPosition = 1;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
      int holdLeftSide = leftSideDistance;
      leftSideDistance = rightSideDistance;
      rightSideDistance = holdLeftSide;
    }
      rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }

  //Turn Right
  else if(counter == 4){
    resetdistances = true;
    setTime = 800; //Time of the Task
    //Drive
    maxDriveSpeed = 80;//Max speed the drive can reach
    leftSideDistance = 250;//In Ticks
    rightSideDistance = -250;
    turnkI = 0.003;
    drivekP = 0.5;
    drivekD = 1;
    //Puncher
    anglePos = 'H'; //(H)igh flag, (L)ow flag
    shoot = false; //Shoot this run?
    //intake
    activateintake = true;
    //Caps
    CapPosition = 3;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
      int holdLeftSide = leftSideDistance;
      leftSideDistance = rightSideDistance;
      rightSideDistance = holdLeftSide;
    }
      rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }

  //Go Forward
  else if(counter == 5){
    resetdistances = true;
    setTime = 1700; //Time of the Task
    //Drive
    maxDriveSpeed = 80;//Max speed the drive can reach
    leftSideDistance = 2500;//In Ticks
    rightSideDistance = 2500;
    turnkI = 0.003;
    drivekP = 0.5;
    drivekD = 1;
    //Puncher
    anglePos = 'H'; //(H)igh flag, (L)ow flag
    shoot = false; //Shoot this run?
    //intake
    activateintake = true;
    //Caps
    CapPosition = 3;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
      int holdLeftSide = leftSideDistance;
      leftSideDistance = rightSideDistance;
      rightSideDistance = holdLeftSide;
    }
      rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }

  //Turn Right
  else if(counter == 6){
    resetdistances = true;
    setTime = 800; //Time of the Task
    //Drive
    maxDriveSpeed = 60;//Max speed the drive can reach
    leftSideDistance = 500;//In Ticks
    rightSideDistance = -500;
    turnkI = 0.003;
    drivekP = 0.5;
    drivekD = 1;
    //Puncher
    anglePos = 'H'; //(H)igh flag, (L)ow flag
    shoot = false; //Shoot this run?
    //intake
    activateintake = true;
    //Caps
    CapPosition = 3;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
      int holdLeftSide = leftSideDistance;
      leftSideDistance = rightSideDistance;
      rightSideDistance = holdLeftSide;
    }
      rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }

  //Go Forward
  else if(counter == 7){
    resetdistances = true;
    setTime = 700; //Time of the Task
    //Drive
    maxDriveSpeed = 60;//Max speed the drive can reach
    leftSideDistance = 800;//In Ticks
    rightSideDistance = 800;
    turnkI = 0.003;
    drivekP = 0.5;
    drivekD = 1;
    //Puncher
    anglePos = 'H'; //(H)igh flag, (L)ow flag
    shoot = false; //Shoot this run?
    //intake
    activateintake = true;
    //Caps
    CapPosition = 3;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
      int holdLeftSide = leftSideDistance;
      leftSideDistance = rightSideDistance;
      rightSideDistance = holdLeftSide;
    }
      rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }

  //Scrape
  else if(counter == 8){
    resetdistances = true;
    setTime = 900; //Time of the Task
    //Drive
    maxDriveSpeed = 60;//Max speed the drive can reach
    leftSideDistance = -200;//In Ticks
    rightSideDistance = -200;
    turnkI = 0.003;
    drivekP = 0.5;
    drivekD = 1;
    //Puncher
    anglePos = 'H'; //(H)igh flag, (L)ow flag
    shoot = false; //Shoot this run?
    //intake
    activateintake = true;
    //Caps
    CapPosition = 2;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
      int holdLeftSide = leftSideDistance;
      leftSideDistance = rightSideDistance;
      rightSideDistance = holdLeftSide;
    }
      rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }

  //Turn Left
  else if(counter == 9){
    resetdistances = true;
    setTime = 500; //Time of the Task
    //Drive
    maxDriveSpeed = 60;//Max speed the drive can reach
    leftSideDistance = -540;//In Ticks
    rightSideDistance = 540;
    turnkI = 0.009;
    drivekP = 0.5;
    drivekD = 1;
    //Puncher
    anglePos = 'H'; //(H)igh flag, (L)ow flag
    shoot = false; //Shoot this run?
    //intake
    activateintake = true;
    //Caps
    CapPosition = 2;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
      int holdLeftSide = leftSideDistance;
      leftSideDistance = rightSideDistance;
      rightSideDistance = holdLeftSide;
    }
      rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }

  //Go Backwards
  else if(counter == 10){
    resetdistances = true;
    setTime = 300; //Time of the Task
    //Drive
    maxDriveSpeed = 80;//Max speed the drive can reach
    leftSideDistance = -300;//In Ticks
    rightSideDistance = -300;
    turnkI = 0.009;
    drivekP = 0.5;
    drivekD = 1;
    //Puncher
    anglePos = 'H'; //(H)igh flag, (L)ow flag
    shoot = false; //Shoot this run?
    //intake
    activateintake = true;
    //Caps
    CapPosition = 3;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
      int holdLeftSide = leftSideDistance;
      leftSideDistance = rightSideDistance;
      rightSideDistance = holdLeftSide;
    }
      rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }

  //Turn Left
  else if(counter == 11){
    resetdistances = true;
    setTime = 700; //Time of the Task
    //Drive
    maxDriveSpeed = 60;//Max speed the drive can reach
    leftSideDistance = -650;//In Ticks
    rightSideDistance = 650;
    turnkI = 0.005;
    drivekP = 0.3;
    drivekD = 1;
    //Puncher
    anglePos = 'H'; //(H)igh flag, (L)ow flag
    shoot = false; //Shoot this run?
    //intake
    activateintake = true;
    //Caps
    CapPosition = 3;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
      int holdLeftSide = leftSideDistance;
      leftSideDistance = rightSideDistance;
      rightSideDistance = holdLeftSide;
    }
      rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }

  //Shoot Low
  else if(counter == 12){
    resetdistances = true;
    setTime = 700; //Time of the Task
    //Drive
    maxDriveSpeed = 40;//Max speed the drive can reach
    leftSideDistance = -10;//In Ticks
    rightSideDistance = -10;
    turnkI = 0.0;
    drivekP = 0.1;
    drivekD = 1;
    //Puncher
    anglePos = 'L'; //(H)igh flag, (L)ow flag
    shoot = true; //Shoot this run?
    //intake
    activateintake = true;
    //Caps
    CapPosition = 6;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
      int holdLeftSide = leftSideDistance;
      leftSideDistance = rightSideDistance;
      rightSideDistance = holdLeftSide;
    }
      rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }

  //Shoot High
  else if(counter == 13){
    usebackwheels = false;
    resetdistances = false;
    finishcode = true;
    setTime = 1500; //Time of the Task
    //Drive
    maxDriveSpeed = 90;//Max speed the drive can reach
    leftSideDistance = -10;//In Ticks
    rightSideDistance = -10;
    drivekP = 2;
    drivekD = 2;
    //Puncher
    anglePos = 'H'; //(H)igh flag, (L)ow flag
    shoot = false; //Shoot this run?
    positionreached = false;
    fullrotation += 850;//Reset puncher to forward position
    //intake
    activateintake = false;
    //Caps
    CapPosition = 6;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
    int holdLeftSide = leftSideDistance;
    leftSideDistance = rightSideDistance;
    rightSideDistance = holdLeftSide;
    }
    rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }

  ////////////////////////////////////////////////////////////
  //Make sure everything is good for usercontrol
  /////////////////////////////////////////////////////////////
  else if(finishcode == false){
    usebackwheels = false;
    resetdistances = true;
    finishcode = true;
    setTime = 1500; //Time of the Task
    //Drive
    maxDriveSpeed = 90;//Max speed the drive can reach
    leftSideDistance = 0;//In Ticks
    rightSideDistance = 0;
    drivekP = 2;
    drivekD = 2;
    //Puncher
    anglePos = 'H'; //(H)igh flag, (L)ow flag
    shoot = false; //Shoot this run?
    positionreached = false;
    fullrotation += 850;//Reset puncher to forward position
    //intake
    activateintake = false;
    //Caps
    CapPosition = 6;//(1)Down, (2)Intake, (3)Forward, (4)Up, (5)Score, (6)Fold Back

    //Change things that are important
    if(AutonPicker.get_value() > 2000){//Swaps values if the side is the other direction. This is simple
    int holdLeftSide = leftSideDistance;
    leftSideDistance = rightSideDistance;
    rightSideDistance = holdLeftSide;
    }
    rightSideDistance *= -1;//Make sure and correct improper values
    goto RUNCODE;
  }
}




}
5 Likes

things programmers do? Use similar / ultra short names for EVERYTHING and confuse ourselves…

13 Likes

Who doesn’t do this? rbc, rfc, lbc, and lfc are the normal chassis motor names, right?

8 Likes

Yes, but that doesn’t mean we don’t get ultra confused sometimes only to realize that one letter was off.

2 Likes

I mean I didn’t have my laptop or code backed up and almost lost it all. After a Windows update, my laptop was like “Sike boutta not work” (aka the computer is on but the screen has died to the motherboard having done a ded). So like any logical person, I searched the manual online (on my PC lol) and found a factory on/off switch. Off, on, BAM! It starts up and works again. It was here, after my laptop almost lost all of its data and subsequently all of our code for TT that I realized I should maybe back up my laptop and maybe keep a flashdrive with code on it.

4 Likes

While keeping a flashdrive with the code on it is a good idea, another solution is git. It’s really good for keeping backups of your code and allowing you to revert back to older versions. It’s also useful to know since its an industry standard.

5 Likes

Coding macros and other stuff that requires real skill just to maintain my position as head programmer. (My other two teammates technically know how to code a little bit.)

3 Likes

I scream at the computer thinking that it will fix itself.

9 Likes

Doesn’t everyone do this with everything?:joy:

8 Likes