Curious. I don't quite know why the accuracy should be better, but maybe ReefPI doesn't use all three digits of resolution natively.
That errorData.dat reads: "1.711"
(ASCII Code 49 = 49-48 = 1)
(ASCII Code 46 = Comma)
(ASCII Code 55 = 55-48 = 7)
(ASCII Code 49 = 49-48 = 1)
(ASCII Code 49 = 49-48 = 1)
That means communication was successful, but the value was below 2.0, so it got dumped into the file. So this part of the code works, but I'm still stumped to why the dip occurs. Especially since it completely throws the axis off as well. If it were simply -0.15 it should just be a normal numerical axis. Very weird.
Can you try and keep an eye on the contents of that file ? That might inform us to what is happening here.
Ultimately we might need to try another thing: rejecting any value that deviates by more than 1.0 from the previous, as long as it isn't consistent. I'll think about it.
That errorData.dat reads: "1.711"
(ASCII Code 49 = 49-48 = 1)
(ASCII Code 46 = Comma)
(ASCII Code 55 = 55-48 = 7)
(ASCII Code 49 = 49-48 = 1)
(ASCII Code 49 = 49-48 = 1)
That means communication was successful, but the value was below 2.0, so it got dumped into the file. So this part of the code works, but I'm still stumped to why the dip occurs. Especially since it completely throws the axis off as well. If it were simply -0.15 it should just be a normal numerical axis. Very weird.
Can you try and keep an eye on the contents of that file ? That might inform us to what is happening here.
Ultimately we might need to try another thing: rejecting any value that deviates by more than 1.0 from the previous, as long as it isn't consistent. I'll think about it.