fshrsthrqwrh
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 |
diff -r 014d36c33b73 -r df674a9d9535 RC_Servo.cpp --- 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);
diff -r 014d36c33b73 -r df674a9d9535 RC_Servo.h --- 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