Richard Sewell
/
ucam
This is the code we showed at Uncraftivism
ServoMinder.h
- Committer:
- jarkman
- Date:
- 2009-12-14
- Revision:
- 2:01115080f6da
- Parent:
- 1:70d90598d2e7
File content as of revision 2:01115080f6da:
#pragma once #include "Servo.h" class ServoMinder { public: ServoMinder( Servo *servo ); void moveTo( float target ); void moveToAndWait( float target ); void setSpeed( float speed ); bool isMoving(); private: Servo *m_servo; float m_target; float m_speed; float m_delta; float m_tickTime; Ticker m_ticker; void tick(); };