[quote=“Bubba”]With the latest revision I see:
-
RGB Yellow not working
this should produce yellow: sparki.RGB(255,255,0);
instead I get red. Yellow worked in previous versions of the installer.
I do get red, green and blue to work properly (and cyan (0,255,255));
-
Turn angles are off
Does anyone know a correction factor so that
sparki.moveLeft(90);
actually turns 90 degrees?
Also, my magnemometer reports a wide range of numbers on all axes.
e.g. sparki.compass(); reports 0…270 even though its moving in a straight line.
It would be nice to have these issues fixed in the next version.[/quote]
My magnometer is faulty so I am not getting any good readings at all, but I believe the motors will create significant magnetic force when they are running which will affect the magnometer readings. So they are propably only reliable when the Sparki is not moving. Secondly there is a bug in the magnometer code which sometime creates of the scale readings from the magnometer. You can either create a filter function which filters out these extreme readings or you can manually patch the code by moving this line out from the function: github.com/ArcBotics/Sparki/blo … i.cpp#L723
and declare the buffer array globally instead, this prevents it from being overwritten by any other function.