
RP6 ROBOT SYSTEM - APPENDIX
guidelines how to assign keys. Check the output codes in the terminal,
which will display the key-codes for the RC5 example program!
14. The robot fails to exactly turn a specific angle.
●
This is normal behaviour and the manual already explained the reasons for
these deviations! Caterpillar drive units will always cause deviations by slip-
ping and sliding. Also the Encoders have to be calibrated in order to work as
intended. See appendix B for more details.
15. Why does even an extremely short program occupy 7 KB of memory?
●
Each program always includes the RP6Library, which will occupy over 6.5KB
of program memory, so 7 KB must be considered as a standard program's
size. You will soon notice the program's size will not increase that much with
your source-code's length. Don't worry for your memory's size. The memory
provides you with ample room for your programs. And if your program's size
ever exceeds the memory's limits, you may consider the use of an expan-
sion-module with an additional Microcontroller.
16. My programs cannot be compiled – the compiler ends up with some
error-message!
●
Check the error-message and try to understand what causes this. If you
have to contact the support, first copy the complete compiler report to a
text file. Then send the compiler messages and your source file to the sup-
port! The following overview lists common programming errors:
■
You forgot to include the RP6Library, or the pathnames in the Makefile
are incorrect. If you start a new project do not forget to alter the
pathnames in the Makefile! Otherwise the compiler will fail to find
these files!
■
Did you forget a semicolon anywhere in the program?
■
Is an accolade missing or superfluous in the program?
■
Did you respect the correct C syntax? Apart from comments and usual
formatting rules for spaces and tabulators any writing variant of the
symbols is relevant for the C compiler. If tHis manuAl contais erorS,,
the text's contnt may sill b cleary uderstoooD bi tha readr.! Compilers
do not allow any such mistakes and may generate a hughe number of
errors for even the smallest mistakes. Unfortunately the compiler
does not have an automatic error correction comparable to that of us
humans...
17. My programs are still not working and the robot does not obey to my
commands – what is going wrong?
- 134 -