]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/simplecontroller.cpp
Fix remaining exception class names
[r2c2.git] / source / libr2c2 / simplecontroller.cpp
index d88ade005929309e38d15f04714e7fa08278cad0..d04acab4a045502d6326927429c625fd568a2d29 100644 (file)
@@ -1,4 +1,3 @@
-#include <msp/core/except.h>
 #include <msp/core/maputils.h>
 #include <msp/time/units.h>
 #include "simplecontroller.h"
@@ -37,7 +36,7 @@ void SimpleController::set_control(const string &name, float v)
        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);
        }