Final Tested Code


motorSpeed(4,25);
while (getVehiclePostion() < 335) {
  if (getVehiclePostion() > 283 && getVehicleDirection() == 1) {
    reverse(4);
    while(getVehicleDirection() > 0) {
        motorSpeed(4,30);
    }
  }
}
brake(4);
goFor(7);
motorSpeed(4,25);
if (getVehicleDirection() == 0) {
  reverse(4);
  motorSpeed(4,25);
}
while (getVehiclePostion() < 775) {
  if (getVehiclePostion() > 712 && getVehicleDirection() == 1) {
    reverse(4);
    while(getVehicleDirection() > 0) {
        motorSpeed(4,35);
    }
  }
}

brake(4);
goFor(5);
motorSpeed(4,50);
if (getVehicleDirection() != 0) {
  reverse(4);
  motorSpeed(4,50);
}
while (getVehiclePostion() > 484) {
  if (getVehiclePostion() < 527 && getVehicleDirection() == 0) {
    reverse(4);
    while(getVehicleDirection() == 0) {
        motorSpeed(4,35);
    }
  }
}

brake(4);
goFor(7);
motorSpeed(4,55);
if (getVehicleDirection() != 0) {
  reverse(4);
  motorSpeed(4,55);
}
while (getVehiclePostion() > 30) {
  if (getVehiclePostion() < 105 && getVehicleDirection() == 0) {
    reverse(4);
    while(getVehicleDirection() == 0) {
        motorSpeed(4,60);
    }
  }
}
brake(4);

Schedule from 4/10 to 4/21

Date Time Location Team Members Goal
4/10/2017 6-8 pm Word Doc from home All Complete the progress report for lab 11
4/12/2017 2-3 pm Hitchcock All Finalize code for upstairs track
4/12/2017 2-3pm Hitchcock All Complete the AEV Final Test Evaluation
4/13/2017 6-8  pm Raney House All Finalize CDR presentation and rehearse

Schedule from 3/23 to 4/10

Date Time Location Team Members Goal
4/3/2017 6-9 pm Word doc from home All Work on Progress Report for lab 10
4/4/2017 6-9 pm Presentation from home All Complete Oral Presentation Draft
4/5/2017 2-3 pm Hitchcock All Finalize minimal coast code
4/5/2017 2-3 pm Hitchcock All Finalize coasting code
4/5/2017 4-5 pm Hitchcock All Compare energy usage and reliability of different codes
4/5/2017 6-9 pm Word doc from home All Complete Progress Report for lab 10

Inside Track Glide

  motorSpeed(4,25); 
  goToAbsolutePosition(250); 
  brake(4); 
  goFor(7); 
   
  motorSpeed(4,25); 
  goToAbsolutePosition(700); 
  brake(4); 
  goFor(5); 
   
  motorSpeed(4,50); 
  gotoAbsolutePosition(480); 
  brake(4); 
  goFor(7); 
   
  motorSpeed(4,50); 
  goToAbsolutePosition(60); 
  brake(4);

Inside Track V2

motorSpeed(4,25); 
  while (getVehiclePostion() < 335) { 
    if (getVehiclePostion() > 290 && getVehicleDirection() == 1) { 
      reverse(4); 
      while(getVehicleDirection() > 0) { 
          motorSpeed(4,30); 
      } 
    } 
  } 
  brake(4); 
  goFor(7); 
  motorSpeed(4,25); 
  if (getVehicleDirection() == 0) { 
    reverse(4); 
    motorSpeed(4,25); 
  } 
  while (getVehiclePostion() < 775) { 
    if (getVehiclePostion() > 715 && getVehicleDirection() == 1) { 
      reverse(4); 
      while(getVehicleDirection() > 0) { 
          motorSpeed(4,35); 
      } 
    } 
  } 
 
  brake(4); 
  goFor(5); 
  motorSpeed(4,50); 
  if (getVehicleDirection() != 0) { 
    reverse(4); 
    motorSpeed(4,50); 
  } 
  while (getVehiclePostion() > 495) { 
    if (getVehiclePostion() < 545 && getVehicleDirection() == 0) { 
      reverse(4); 
      while(getVehicleDirection() == 0) { 
          motorSpeed(4,40); 
      } 
    } 
  } 
 
  brake(4); 
  goFor(7); 
  motorSpeed(4,55); 
  if (getVehicleDirection() != 0) { 
    reverse(4); 
    motorSpeed(4,55); 
  } 
  while (getVehiclePostion() > 10) { 
    if (getVehiclePostion() < 50 && getVehicleDirection() == 0) { 
      reverse(4); 
      while(getVehicleDirection() == 0) { 
          motorSpeed(4,55); 
      } 
    } 
  } 
  brake(4); 

Energy & Consistency Improvements

Date: 4/5/2017

Time: 4:00 pm (Face-to-Face)

Members Present: Blake Kanoy, Ashwin Rajgopal, Daniel Fahmi and Alex Beutel

Topics Discussed: Energy efficiency and dependability of different codes

Objective:

The main focus of the meeting was to discuss the energy efficiency and dependability of the coasting and non-coasting codes.

To Do/ Action Items:

– Compare the energy usage graphs of the coasting and non-coasting runs

-Discuss and compare the dependability of the different codes

-Decide on which code to proceed with going into final testing and evaluation

Decisions:

-The team decided to proceed with the non-coasting code due to its superior dependability and the energy difference not being large enough to warrant using the coasting code

Reflections:

-The team was able to come to a reasonable decision within the hour long meeting

-The team feels confident that the non-coasting code will be finalized shortly and the AEV will soon be ready for the final evaluation