#ifndef busp_servo_h #define busp_servo_h // busp_servo.h // buzz - Programme du robot Efrei Robotique I1-I2 2003 // Copyright (C) 2003 Nicolas Schodet class BuspServo { static const int m_address = 1; static const int m_nbServo = 8; static const int m_nbPositions = 9; int m_pos[m_nbServo]; int m_ppos[m_nbPositions][m_nbServo]; public: // Constructeur. BuspServo (); // Bouge le servo N en POS. void moveTo (int n, int pos); // Bouge le servo N de DIFF. void move (int n, int diff); // Déplace les servos pour atteindre une position. void position (int p); private: // Fait le déplacement effectif. void set (int n, int pos); }; #endif // busp_servo_h