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)
{
}
}
-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;