![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Final
Fork of MiniProject5_LightTracker by
ServoControl.cpp
- Committer:
- pstephens18
- Date:
- 2016-01-11
- Revision:
- 11:7b3d64a66efd
- Parent:
- 8:96b30706335b
- Child:
- 13:871d01d0d250
File content as of revision 11:7b3d64a66efd:
//Control Function for servo #include "ServoControl.h" PwmOut ServoSignal(p21); //P21 is PWM signal out to servo void ServoInit(void){ ServoSignal.period(0.020); } float ServoControl(float angle){ ServoSignal.pulsewidth_us(1500+10*angle); return 0; }