
2013 VCU Senior Design Expo Linear Rotary Motor Control Program. This is the actual program used by the team at the Expo.
Diff: main.cpp
- Revision:
- 2:e46a0432d96b
- Parent:
- 1:99f06e7e6906
- Child:
- 3:1d681d86f1dd
--- a/main.cpp Tue Apr 16 19:50:19 2013 +0000 +++ b/main.cpp Tue Apr 16 19:56:07 2013 +0000 @@ -719,7 +719,7 @@ difference = current_location - desired_location; xbee.printf("\r\nDifference %d",difference); while(difference > 0){ - if(count > two){ + if(count > four){ for(int i=0; i<difference;i++){ move_one_left(current_location-one); current_location--; @@ -744,7 +744,7 @@ }//End of while(greater than zero)// while(difference < 0){ - if(count > two){ + if(count > four){ for(int i=0;i<(abs(difference));i++){ move_one_right(current_location+one); current_location++;