Project
Dependencies: Motor Servo mbed
Diff: project.cpp
- Revision:
- 3:99852d2be11d
- Parent:
- 2:460005c21162
- Child:
- 4:b3bd945920cd
--- a/project.cpp Wed Oct 24 01:40:18 2018 +0000 +++ b/project.cpp Wed Oct 24 19:52:10 2018 +0000 @@ -47,22 +47,22 @@ else if (a==1 && b==0 && c==0 && d==0) { // if only switch one is on, lights are on and table spins. - table.speed(.2); + table.speed(.25); lit(); } // end if else if (a==1 && b==1 && c==0 && d==0){ // if switches one and two are on, table spins, and movement 1 happens - table.speed(.2); + table.speed(.25); mov1(); lit(); } // end if else if (a==1 && b==0 && c==1 && d==0){ // if switches one and three on, table spins, movement two happens - table.speed(.2); + table.speed(.25); mov2(); lit(); } // end if else if (a==1 && b==0 && c==0 && d==1){ // if switches one and three are on, table speens, movement three - table.speed(.2); + table.speed(.25); mov3(); lit(); } // end if @@ -75,7 +75,7 @@ lights[3]=0; lights[4]=0; } // end if - + wait(.02); }// end while } // end main @@ -108,7 +108,7 @@ for (j=0; j<40; j++){ uparm = 0.833-j*0.00833; wait(.075); - printf("ahh"); + printf("Movement 1 \n\r"); } } } @@ -131,6 +131,7 @@ uparm = 0.833-j*0.00833; lowarm = 0.833-j*0.00833; wait(.075); + printf("Movement 2 \n\r"); } } } @@ -152,6 +153,7 @@ uparm = .5 + j*0.00833; lowarm = 0.833-j*0.00833; wait(.075); + printf("Movement 3 \n\r"); } } }