]> rtime.felk.cvut.cz Git - eurobot/public.git/blobdiff - src/motion/arc.cc
motion: Fix compile error.
[eurobot/public.git] / src / motion / arc.cc
index a1d91a62d99e77a930e7aea3b57fd2a828a8568e..f3b67e6e92bf87241b0683dc9be1f6a9bc2c5de8 100644 (file)
@@ -1,5 +1,25 @@
+//     Copyright 2009 Michal Sojka <sojkam1@fel.cvut.cz>
+//     Copyright 2009 Petr Beneš
+//
+//     This file is part of Trgen library.
+//
+//     Trgen is free software: you can redistribute it and/or modify
+//     it under the terms of the GNU General Public License as published by
+//     the Free Software Foundation, either version 3 of the License, or
+//     (at your option) any later version.
+//
+//     Trgen is distributed in the hope that it will be useful,
+//     but WITHOUT ANY WARRANTY; without even the implied warranty of
+//     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+//     GNU General Public License for more details.
+//
+//     You should have received a copy of the GNU General Public License
+//     along with Trgen.  If not, see <http://www.gnu.org/licenses/>.
+
+
 #include "trgen.h"
 #include "trgendbg.h"
+#include <stdio.h>
 
 namespace Segment {
 
@@ -32,6 +52,13 @@ namespace Segment {
        maxv = fmin(maxv, sqrt(constr.maxcenacc * r));
     }
 
+    /**
+     * not implemented, because this class is not used any more
+     */
+    double Arc::getDistance(double time) const {
+        return -1.0;
+    }
+
     void Arc::getPointAt(double distance, Point *p) {
         double ratio, a;
         if (distance > 0) {