#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;
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; }