#ifndef SERVO_H #define SERVO_H #include "Spec_servo.h" //classe hard servo nv_0 : élément de commande finale class Servo:public Spec_servo { //private int PULSE; public : Servo(int pos=0, Spec_servo spec_s=0):Spec_servo(spec_s) { if(!Positionne(pos)) { Positionne(Milieu()); } } bool Positionne(int pos) { if(contient(pos)) { PULSE=pos; return 1; } return 0; } int r_Pulse() { return PULSE; } }; #endif