From: Andrea @barchetta Date: Thu, 30 Mar 2017 16:02:18 +0000 (+0200) Subject: clean up lib master X-Git-Url: http://git.piffa.net/web?a=commitdiff_plain;h=ca67a73d0b0c3e654431b7675327a9c4bd88ba3e;p=rover clean up lib master --- diff --git a/libraries/rover/rover.h b/libraries/rover/rover.h index acde54f..3710239 100644 --- a/libraries/rover/rover.h +++ b/libraries/rover/rover.h @@ -13,41 +13,6 @@ Licenza: GPLv3 #ifndef rover_h #define rover_h -////////////////////// -// OBJ - - -class engine { -// Gestione di un singolo motore -private: - byte enablePIN1; - byte enablePIN2; - byte min; // Minimo per partire - byte val; // 8bit PWM - -public: - Engine (byte PIN1, byte PIN2, byte PINPWM); - void Forward (); - void Backward (); - void SetSpeed (); // imposta un valore preciso per il PWM - -} - -class motors { -// classe composta da due engines -// Composition is better than inheritance here - -public: - motors (engine enginesx, engine enginedx) { - void Forward (); - void Backward (); - void TurnLeft (); - void TurnRight (); - void TurnU (); -} -} -////////////////////// -// Funzioni #endif