Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ServomotorTests NerfUSTarget
RealServomotor.cpp
00001 #include "RealServomotor.hpp" 00002 #include "mbed.h" 00003 00004 RealServomotor::RealServomotor(PwmOutInterface &pwm_out) : 00005 Servomotor(pwm_out), 00006 pwm_out(pwm_out) 00007 { 00008 } 00009 00010 void RealServomotor::set_position_down() 00011 { 00012 set_angle(0); 00013 wait_ms(300); 00014 pwm_out.pulsewidth_us(0); 00015 }
Generated on Thu Jul 14 2022 19:16:36 by
