/* The idea of having this one main is to have a way of using a uniform 
 * space that does nothing more than make a few neccessary global variables 
 * and call one or more functions for the different sections of our project.
 * When editing this document only edit the section that applies to your group
 * and then re-comit to the overall code structure.  
 */


int main(){

  int mode=4;
  /* 1=getting
   * 2=map
   * 3=send data
   * 4=all
   */

  if(mode==1){
    /*getting there
      go_there();
      come_back();*/
  }else if(mode==2){
    /*mapping
    get_position();
    drop_angle = angle;
    drop_position = position;
    move_to_light(0);
    map();*/
  }else if(mode==3){
    /*sending data*/
     send_data(array_position);
  }else if(mode==4){
    /*all of the above*/
    /*getting there*/
     go_there();
     beep();
     printf("there\n");
     get_position(0);
     drop_angle = angle;
     drop_distance = distance;
     sleep(long_sleep);
    /*mapping*/
     move_to_light(0);
     map();
     beep();
     printf("done mapping\n");
     sleep(4.0);
     beep();
     printf("were back!!\n");
     sleep(4.0);
    /*sending data*/
     /*coming back*/
     come_back();
     send_data(array_position);
  }
  return(0);
}

