![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
This is the code we showed at Uncraftivism
ServoMinder.h
- Committer:
- jarkman
- Date:
- 2009-12-10
- Revision:
- 1:70d90598d2e7
- Parent:
- 0:57f4fdadc97f
- Child:
- 2:01115080f6da
File content as of revision 1:70d90598d2e7:
#pragma once #include "Servo.h" class ServoMinder { public: ServoMinder( Servo *servo ); void moveTo( float target ); void moveToAndWait( float target ); void setSpeed( float speed ); private: Servo *m_servo; float m_target; float m_speed; float m_delta; float m_tickTime; Ticker m_ticker; void tick(); };