
Code used for the 2013 LRM Senior Design Team at VCU 2013 Senior Design Linear Rotary Motor
Diff: main.cpp
- Revision:
- 1:27dcf7ff5b96
- Parent:
- 0:b1f00c299273
- Child:
- 2:675f8691f469
--- a/main.cpp Tue Apr 23 21:31:49 2013 +0000 +++ b/main.cpp Wed Apr 24 00:46:06 2013 +0000 @@ -1683,7 +1683,8 @@ rotary5 = 1; for(int i=0;i<rot_pos;i++){ rotary_threshold[i] = rot_indication.read(); - rot_one_cw(); + rot_one_cw(); + wait(rot_slow); }//End of for //Print rotary_threshold[i] to file// FILE *fp5= fopen("/local/rotary.txt", "w"); @@ -1875,10 +1876,12 @@ return; }//End of if else if(rot_position - angle > 0){ - rot_one_cw(); + rot_one_cw(); + wait(rot_slow); }//End of else if else if(rot_position - angle < 0){ rot_one_ccw(); + wait(rot_slow); }//End of else if } return;