Hi here I am again to have some clarifications on the software, I would like to customize the cat with new movements but first I would like to understand some lines of the program that I am not clear the first is “const char crR [] PROGMEM = {26, 0, - 5 ,
35, 37, - 48, - 53, - 23, - 28, 1, 12,
40, 34, - 47, - 59, - 24, - 27, 1, 12,
45, 31, - 46, .......... "
the first three numbers what they indicate, the first is the number of lines (or frames) that make up the movement but I don't know about the other two,
the second I would like to know the difference between these two lines:
"Const char crR [] PROGMEM = {
26, 0, - 5,
35, 37, - 48, - 53, - 23, - 28, 1, 12,
40, 34, - 47, - 59, - 24, - 27, 1, 12,
45, 31, - 46, ......... "
"Const char balance [] PROGMEM = {
1, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 30, 30, - 30, - 30, 30, 30, - 30, - 30,};
because the first is composed of 8 characters for each line while the second is composed of 16, I hope I was clear.
thanks for your patience
Giuseppe
The previous demos have larger amplitude of head/tail movements which is unnatural. In this one I reduced the amplitude and did some finer tuning on calibration and other parameters. Adding background music also helps to your subjective impression of the pace.
#defines batt A0
Pin A0 is used to measure the voltage of battery. It's not in the released code but will be in effect to detect overcurrent and give the cat a break after a sprint.