CPS_Lab*
/
AltTest2
Lab 7
Fork of AltTest2 by
Revision 5:96b831624184, committed 2018-03-07
- Comitter:
- youngs2
- Date:
- Wed Mar 07 17:42:34 2018 +0000
- Parent:
- 4:eaaf67c5e1ca
- Commit message:
- Lab 7 Final Verison
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r eaaf67c5e1ca -r 96b831624184 main.cpp --- a/main.cpp Sun Mar 04 20:39:06 2018 +0000 +++ b/main.cpp Wed Mar 07 17:42:34 2018 +0000 @@ -24,6 +24,8 @@ return(maxspeed); } +/* +* Writes altitude array to file void graph(double *alt, int time) { FILE *fp = fopen("speed.txt","w"); @@ -36,6 +38,7 @@ fclose(fp); } +*/ /* returns max speed */ void elevator(void) @@ -241,7 +244,7 @@ while (1){ if(lever == 1) elevator(); - wait(10); + wait(1); } //no return; while(1) never exited