Hi,
I would like to point out that there is a common bug in a number of the sample C programs that I have scanned through, for example in the program HomeBrushlessSnap4.c, but in some others too.
In these programs, the variable "k" is defined as float, and then iterated using k++ and ++k. This doesn't work, iterating floats is not part of the C programming language. k would need to be defined as an integer and then cast using (float) as needed.
The programs as provided would not work. Just giving a heads-up ...
Regards,
Frank