summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/busp/busp_servo.h
blob: 764293b6f0cefe58d3d6ffbd894282f3ef38b839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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 = 2;
    int m_pos[8];
  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);
  private:
    // Fait le d�placement effectif.
    void set (int n, int pos);
};

#endif // busp_servo_h