]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
Add several function prototypes and header includes to reduce the
authorTran Duy Khanh <trandk1@fel.cvut.cz>
Sat, 12 Apr 2008 13:02:07 +0000 (15:02 +0200)
committerTran Duy Khanh <trandk1@fel.cvut.cz>
Sat, 12 Apr 2008 13:02:07 +0000 (15:02 +0200)
amount of compilation warnings.

src/laser-nav/lasernav/laser-nav.c
src/laser-nav/lasernav/laser-nav.h
src/laser-nav/lasernav/test_laser-nav.c
src/robomath/robomath.c

index 17eb7c6da1850484f0a9bc416b3f6e0412b36576..1bd43cd0e6871f1a3d146f5f1ff3e7e3fc495689 100644 (file)
@@ -7,6 +7,8 @@
  * Author      : Tran Duy Khanh (www.tran.cz)
  */
 
+#include <stdio.h>
+#include <stdlib.h>
 #include <math.h>
 #include <robomath.h>
 #include "laser-nav.h"
@@ -723,7 +725,7 @@ void test_coordination()
        struct pln_pos_state estpos;
        struct pln_aangle_state aas;
        struct pln_angle_state as;
-       int i, j;
+       int i;
 
        /* set fixed points */
        pln_set_points();
index 79c8ffeb12dafc920711181d2dfd9a88ab1f46b4..fc2a8b8cef6421fc7233eeab5184a7728f9fb76e 100644 (file)
@@ -214,6 +214,11 @@ void pln_cal_position(unsigned int *times, unsigned int timecnt,
                        struct pln_pos_state act_pos, 
                        struct pln_pos_state *est_pos);
 int cmpd(const void *a, const void *b);
+
+void test_angles(struct pln_point *positions, int *poscount);
+void test_coordination();
+void test_sel_angles();
+void test_cal_position(struct pln_point *positions, int *poscount);
 #ifdef __cplusplus
 }
 #endif 
index 2dbdffba1f8773730017b9f815be32a236273e1a..80226a812e70ae580348947ad35652ce8d952c12 100644 (file)
@@ -6,6 +6,7 @@
  * Author      : Tran Duy Khanh (www.tran.cz)
  */
 
+#include <stdio.h>
 #include "laser-nav.h"
        
 struct pln_point positions[FWIDTH*FHEIGHT];
index abf116e31186ec2a2a795645b9a544167a1a84b8..71dd448e4609e483c6c601fd6d8e2b7ed71eb843 100644 (file)
@@ -8,6 +8,7 @@
  * License     : GNU GPL v.2
  */
 
+#include <stdio.h>
 #include <stdlib.h>
 #include <math.h>
 #include "robomath.h"