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
Servomotor.hpp
00001 #ifndef SERVOMOTOR_HPP 00002 #define SERVOMOTOR_HPP 00003 00004 #include "PwmOutInterface.hpp" 00005 #include "ServomotorInterface.hpp" 00006 00007 class Servomotor : public ServomotorInterface 00008 { 00009 public: 00010 Servomotor(PwmOutInterface &pwm_out); 00011 virtual void set_position_up(); 00012 virtual void set_position_down(); 00013 virtual void set_angle(const float angle_degree); 00014 00015 float up_angle; 00016 00017 private: 00018 PwmOutInterface &pwm_out; 00019 }; 00020 00021 #endif
Generated on Thu Jul 14 2022 19:16:36 by
