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: Hybrid_ServoMotor Hybrid_main_FirstEdtion
Revision 1:ed0ec5b8516c, committed 2017-01-24
- Comitter:
- Gaku0606
- Date:
- Tue Jan 24 22:34:57 2017 +0000
- Parent:
- 0:7ba85d855519
- Commit message:
- ?????????????
Changed in this revision
| Servo.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/Servo.h Wed Jan 18 22:09:15 2017 +0000
+++ b/Servo.h Tue Jan 24 22:34:57 2017 +0000
@@ -10,53 +10,53 @@
public:
/**
- * @param _pin pin's name
- * @param _maxPulse Max pulse width in seconds
- * @param _minPulse min pulse width in seconds
+ @param _pin pin's name
+ @param _maxPulse Max pulse width in seconds
+ @param _minPulse min pulse width in seconds
*/
Servo(PinName pin, double maxPulse = 0.00245f, double minPulse = 0.00065f);
/**
- * @bref rotate servo motor's horn set angle
- * @param _angle[double] Servo position in degree
+ @bref rotate servo motor's horn set angle
+ @param _angle[double] Servo position in degree
*/
void write(double angle);
/**
- * @bref read current servo position
- * @param [double] Return angle in degree
+ @bref read current servo position
+ @param [double] Return angle in degree
*/
double read();
/**
- * @bref Set pulse width in max and min
- * @param maxPulse [double] Max pulse width in seconds
- * @param minPulse [double] min pulse width in seconds
+ @bref Set pulse width in max and min
+ @param maxPulse [double] Max pulse width in seconds
+ @param minPulse [double] min pulse width in seconds
*/
void setRange(double maxPulse, double minPulse);
/**
- * @bref Set pulse width in zero [degree]
- * @param zeroPulse [double] pulse width in zero position
+ @bref Set pulse width in zero [degree]
+ @param zeroPulse [double] pulse width in zero position
*/
void setZeroPulse(double zeroPulse = 0.00160f);
/**
- * @bref Set never over angle
- * @param maxAngle [double] max servo position
- * @param minAngle [double] min servo position
- * @note もし90,0と設定すると,絶対に0°から90°の範囲から出なくなります
+ @bref Set never over angle
+ @param maxAngle [double] max servo position
+ @param minAngle [double] min servo position
+ @note もし90,0と設定すると,絶対に0°から90°の範囲から出なくなります
*/
void setAngleRange(double maxAngle = 90.0f, double minAngle = -90.0f);
/**
- * @bref use '=' operater, you can write()
- * @param dValue [double] angle in degree
+ @bref use '=' operater, you can write()
+ @param dValue [double] angle in degree
*/
Servo& operator= (double dValue);
/**
- * @bref Return currnet angle, so the same of read()
+ @bref Return currnet angle, so the same of read()
*/
double operator()(void);