]> rtime.felk.cvut.cz Git - hubacji1/iamcar.git/commitdiff
Add x-axis indexing defines
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Wed, 16 Jan 2019 13:28:23 +0000 (14:28 +0100)
committerJiri Vlasak <hubacji1@fel.cvut.cz>
Fri, 18 Jan 2019 09:18:28 +0000 (10:18 +0100)
Also, set the maximum size of y-axis indexing to 100.

incl/rrtbase.h

index d30a016c34fcbcee65c2609167f27a12dc8a2cd8..aa8aaacba5216b42565d1a47ff09118c82e09c37 100644 (file)
@@ -25,7 +25,11 @@ along with I am car. If not, see <http://www.gnu.org/licenses/>.
 #include "rrtnode.h"
 #include "sample.h"
 
-#define IYSIZE 200
+#define IXSIZE 100
+#define IXSTEP (1.0 * ((VMAX) - (VMIN)) / IXSIZE)
+#define IXI(x) ({ __typeof__ (x) _x = (x); \
+                (int) floor(_x / IXSTEP); })
+#define IYSIZE 100
 #define IYSTEP (1.0 * ((HMAX) - (HMIN)) / IYSIZE)
 #define IYI(y) ({ __typeof__ (y) _y = (y); \
                 (int) floor(_y / IYSTEP); })