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.
Dependencies: SoftPWM
Fork of RC_Servo by
Diff: RC_Servo.h
- 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);
