Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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
