Koa-PicoITX User Manual rev 1.0
15
4.
PROGRAMMING
Knowledge needed:
-
C programming
-
command line compilation (Makefile)
You have two choices for programming:
-
directly on the robot and PicoITX (fastest, nothing more to be installed)
-
on another computer (better for remote or if the robot is not available)
4.1 Directly on the robot
4.1.1 Template program
The compiler gcc should be already installed:
launching gcc in a terminal should return "gcc: no input files".
The libkorebot, which is a K-Team library providing facilities for using different
robots and modules, should already be installed in ~/software/libkorebot_VERSION,
where VERSION is the actual version. The documentation for the library is available
here:
http://ftp.k-team.com/korebot/libkorebot-doc/files.html
There is a template program, with which you can start your own program, located in:
~/software/libkorebot_VERSION/template
With the following commands, you can compile then run it:
make clean
make
./template
For specific documentation and examples on the programming of the Koala, read the
next sub-chapter "Using examples", specially the koala_test.c example.
Remarks:
If you modify the program source code name (currently prog-template.c), you
will have to modify its occurrences in the Makefile file, which is the script file
launched when the above make is executed.