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