a simple library to control an animatronic head

Committer:
mxjac
Date:
Tue May 10 08:46:15 2011 +0000
Revision:
4:45d466252fb6
Parent:
2:3920d79c79b1

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mxjac 0:8474cbec06bd 1 #include "mbed.h"
mxjac 0:8474cbec06bd 2 #include "SRF05.h"
mxjac 0:8474cbec06bd 3 #include "Servo.h"
mxjac 0:8474cbec06bd 4
mxjac 0:8474cbec06bd 5 class Alex
mxjac 0:8474cbec06bd 6 {
mxjac 0:8474cbec06bd 7 public:
mxjac 0:8474cbec06bd 8 Alex(SRF05, Servo, Servo, Servo, Servo);// build a head object, comprised of a sensor and 4 servos
mxjac 0:8474cbec06bd 9 ~Alex();
mxjac 0:8474cbec06bd 10 void TestHead();
mxjac 0:8474cbec06bd 11 int Testpresence();
mxjac 0:8474cbec06bd 12 void Move_eyes(int);
mxjac 0:8474cbec06bd 13 void Move_mouth(int);
mxjac 0:8474cbec06bd 14 void Move_leaning(int);
mxjac 0:8474cbec06bd 15 void Move_rotation(int);
mxjac 4:45d466252fb6 16 // void Simulate_Talking(int);
mxjac 4:45d466252fb6 17 // void Presence_too_far();
mxjac 4:45d466252fb6 18 // void displaydistance();
mxjac 0:8474cbec06bd 19 private:
mxjac 0:8474cbec06bd 20 SRF05 S;
mxjac 0:8474cbec06bd 21 Servo E, M, L, R;
mxjac 1:c5edd3b18b79 22 PwmOut Led;
mxjac 1:c5edd3b18b79 23 Serial pc;
mxjac 0:8474cbec06bd 24 };