]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/simplecontroller.h
Make LCD output selectable at runtime through an extra I/O pin
[r2c2.git] / source / libmarklin / simplecontroller.h
index c86d537fe36083254306179aace90e9f0189315e..9b0df261f3495b6f46442e28c963b462fff71734 100644 (file)
@@ -10,15 +10,14 @@ Distributed under the GPL
 
 #include <string>
 #include "controller.h"
-#include "traincontrol.h"
 
 namespace Marklin {
 
 class SimpleController: public Controller
 {
 private:
-       TrainControl target_speed;
-       TrainControl reverse;
+       Control target_speed;
+       Control reverse;
        float accel;
        float speed;
 
@@ -26,7 +25,7 @@ public:
        SimpleController();
 
        virtual void set_control(const std::string &, float);
-       virtual const TrainControl &get_control(const std::string &) const;
+       virtual const Control &get_control(const std::string &) const;
 
        virtual float get_speed() const { return speed; }
        virtual bool get_reverse() const { return reverse.value; }