RP6 ROBOT SYSTEM - APPENDIX
●
No idea! ;-) You will have to be more specific in describing your problems to
the support. We often receive questions like “Why is this program malfunc-
tioning?”. Dot. Of course, we need a bit more detailled description of what
the program is supposed to do at all and what is not working! Otherwise this
quickly turns out to be a quiz game...
●
Usual beginner mistakes are:
■
Adding a semicolon at the wrong location – e.g. closing a loop or an
if-statement. Often you are allowed to insert a semicolon-symbol
there, but it will not work as you may have intended!
■
Providing if/else-constructs with accolades at wrong positions – this
may easily happen if your program's indentation structure is bad.
■
Using incorrect data types for variables – e.g. the uint8_t data type
may accept values in the range from 0 up to 255, but cannot be used
to count up to 1500! To count this far you will have to use an
uint16_t! The uint8_t data type will not accept negative values as
well. To work with negative values, you will need a signed data type
like int8_t! Check the overview of all data types at the start of the
small C crash-course!
■
Forgetting the infinite loop at the program's end – if this infinite loop
is missing, your program may produce strange results.
■
You are using the non-blocking mode for “move” or “rotate” functions,
but you do not frequently call “task_motionControl” or the
“task_RP6System” functions! Or your program contains long pauses
generated with mSleep. In using the non-blocking mode for “move” or
“rotate” functions or using the ACS you must use stopwatches for all
delays over approximately 10 Milliseconds! The mSleep-function and
other blocking functions should not be used in combination with non-
blocking functions! Please read the RP6Library's chapter again for de-
tails and study the example programs!
■
When editing Header files or other library sources do MAKE CLEAN be-
fore recompile otherwise the compiler may ignore the changes.
■
Always remember to save altered program's sources before re-
compiling! Otherwise
the compiler will compile the previous
unaltered version on your harddisk! In doubt, you may execute
MAKE CLEAN and re-compile again!
18. You are confronted with other problems?
●
Try reading the important sections of the manual again! It may often help,
but sometimes it does not...
●
Did you already download the latest software versions and the recent
manual version
●
For C language, AVR or Microcontroller related problems, did you visit the
AVRFreaks Website and Forum? --> http://www.avrfreaks.net/
●
Did you generally visit support forums at all? (Please do not start by imme-
- 135 -