]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/simplecontroller.cpp
Make LCD output selectable at runtime through an extra I/O pin
[r2c2.git] / source / libmarklin / simplecontroller.cpp
index 01d041126d1491e517bc3ded3f1920fb0f259b95..574418826151b26809a39c8d53845b0b8148bb31 100644 (file)
@@ -15,8 +15,8 @@ using namespace Msp;
 namespace Marklin {
 
 SimpleController::SimpleController():
-       target_speed(TrainControl::continuous("speed", 0, 1000)),
-       reverse(TrainControl::binary("reverse")),
+       target_speed(Control::continuous("speed", 0, 1000)),
+       reverse(Control::binary("reverse")),
        accel(0.07),
        speed(0)
 {
@@ -39,7 +39,7 @@ void SimpleController::set_control(const string &name, float v)
        }
 }
 
-const TrainControl &SimpleController::get_control(const string &name) const
+const Controller::Control &SimpleController::get_control(const string &name) const
 {
        if(name=="speed")
                return target_speed;