Build upon app-board-Servo. Print servo readings, scaled to [0.0, 1.0], to LCD on mbed Application Board. Scale reading to [0 - 270] range of typical servo. Print servo angles to LCD on mbed Application Board.
Dependencies: C12832_lcd Servo mbed
Fork of app-board-Servo by
Revision 3:58ae2860725e, committed 2013-10-08
- Comitter:
- chapfohn
- Date:
- Tue Oct 08 09:54:53 2013 +0000
- Parent:
- 2:85693b6a99fa
- Child:
- 4:62b61875eab5
- Commit message:
- Fixed time issue.
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Oct 08 04:01:19 2013 +0000 +++ b/main.cpp Tue Oct 08 09:54:53 2013 +0000 @@ -36,7 +36,7 @@ lcd.cls(); //Clear screen for new cycle lcd.locate(3,3); //Screen location - lcd.printf("pan"); //Column heading + lcd.printf("pan |"); //Column heading lcd.locate(40,3); //Screen location lcd.printf("tilt"); //Column heading lcd.locate(3,12); //Screen location @@ -45,7 +45,7 @@ lcd.printf("%.2f\n",TILTa); //Print TILT s1=p1; //Set PAN servo to PAN potentiometer reading s2=p2; //Set PAN servo to PAN potentiometer reading - //wait(0.1); //Wait for servos to make position + wait(0.1); //Wait for servos to make position } }