-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
-#include <msp/core/except.h>
+#include <msp/core/maputils.h>
#include <msp/time/units.h>
#include "simplecontroller.h"
else if(name==reverse.name)
{
if(target_speed.value || speed)
- throw InvalidState("Must be stopped to change reverse");
+ throw logic_error("Must be stopped to change reverse");
reverse.set(v);
signal_control_changed.emit(reverse);
}
else if(name==reverse.name)
return reverse;
else
- throw KeyError("Unknown control", name);
+ throw key_error(name);
}
float SimpleController::get_braking_distance() const