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
Revision 8:df674a9d9535, committed 2018-06-08
- Comitter:
- samuelhadjes
- Date:
- Fri Jun 08 11:37:21 2018 +0000
- Parent:
- 7:014d36c33b73
- Commit message:
- ayjdykdtkutdty; tamer tamer tmaer
Changed in this revision
| RC_Servo.cpp | Show annotated file Show diff for this revision Revisions of this file |
| RC_Servo.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/RC_Servo.cpp Tue Jun 05 12:22:17 2018 +0000
+++ b/RC_Servo.cpp Fri Jun 08 11:37:21 2018 +0000
@@ -26,6 +26,7 @@
_RCpwm.pulsewidth_us (_RCpMin + (long)((_RCpMax - _RCpMin) * position));
}
+
RC_Servo& RC_Servo::operator= (double position)
{
write (position);
--- a/RC_Servo.h Tue Jun 05 12:22:17 2018 +0000
+++ b/RC_Servo.h Fri Jun 08 11:37:21 2018 +0000
@@ -74,6 +74,7 @@
* @param position : float number between 0 and 1 (0 = Min, 1 = Max)
*/
void write (double position);
+
/**
* A short hand for write
