Pulse Width Modulation RC Servomotor Library compatible with classic and extended models. Models limit are customizable

Dependents:   FRC_2018 0hackton_08_06_18 0hackton_08_06_18_publish Kenya_2019 ... more

Revision:
2:a762abad6301
Parent:
1:8482eba4d652
Child:
3:398efc75d72b
--- a/RC_Servo.h	Mon May 21 16:07:20 2018 +0000
+++ b/RC_Servo.h	Tue May 22 15:28:07 2018 +0000
@@ -44,12 +44,13 @@
 /**
  * RC_Servo Class
  */
-class RC_Servo {
+class RC_Servo
+{
 
 public :
 
     /**
-     * Constructor.
+     * Constructor of a RC Servo (analog).
      *
      * @param PWM is the Mbed pin used to generate the PWM signal
      * @param _extended (= 0) if set modified the fonctioning limits
@@ -59,8 +60,8 @@
     /**
      * Set the min and max time associeted with both position
      *
-     * @param Tmin pulsewidth (in us) associated with Min position (must be more than 400) 
-     * @param Tmax pulsewidth (in us) associated with Max position (must be less than 2400) 
+     * @param Tmin pulsewidth (in us) associated with Min position (must be more than 400)
+     * @param Tmax pulsewidth (in us) associated with Max position (must be less than 2400)
      * @return 0 if OK, any other value if FAIL
      */
     int setLimits (int Tmin, int Tmax);
@@ -68,11 +69,11 @@
     /**
      * Set the position of the Servo
      *
-     * @param position float number between 0 and 1 (0 = Min, 1 = Max) 
+     * @param position float number between 0 and 1 (0 = Min, 1 = Max)
      */
     void write (float position);
 
-    /** 
+    /**
      * A short hand for write
      */
     RC_Servo& operator= (float position);