diff options
author | Florian Jung <florian.a.jung@web.de> | 2012-12-04 00:52:52 +0100 |
---|---|---|
committer | Florian Jung <florian.a.jung@web.de> | 2012-12-04 00:52:52 +0100 |
commit | 7abab26e3fcdfd6b0f61e3f413d0a4a05c20771c (patch) | |
tree | 383df313f95fae62688775864592e06893936b4f /mariokart.cpp | |
parent | 2a6085d02541bed487d2a3c3a6418f48ff70ffc7 (diff) |
lizenzkram und horizon-steerer-frickel
Diffstat (limited to 'mariokart.cpp')
-rw-r--r-- | mariokart.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mariokart.cpp b/mariokart.cpp index ff5fbaa..cdc3d60 100644 --- a/mariokart.cpp +++ b/mariokart.cpp @@ -1,12 +1,11 @@ /* - * unbenannt.cxx + * mariokart.cpp * - * Copyright 2012 Unknown <flo@archie> + * Copyright 2012 Florian Jung <florian.a.jung@web.de> * * This program 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 2 of the License, or - * (at your option) any later version. + * it under the terms of the GNU General Public License Version 3 + * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -36,6 +35,7 @@ #include "util.h" #include "steer_interface.h" #include "naive_steerer.h" +#include "horizon_steerer.h" #include "road_thresholder_iface.h" #include "road_thresholder.h" @@ -307,6 +307,7 @@ joystick.reset(); SteerIface* steerer = new NaiveSteerer(xlen/2, 0.58*ylen); +// HorizonSteerer* hor_steerer = new HorizonSteerer(xlen,ylen); RoadThresholderIface* road_thresholder = new RoadThresholder(); while(1) @@ -395,6 +396,8 @@ joystick.reset(); steerer->process_image(img_thres2); double steer_value = steerer->get_steer_data(); + +// hor_steerer->process_image(img_thres2); Mat steer=Mat::zeros(20,1920,CV_8U); steer.col( steer.cols /2 )=128; |