Open flashlightstuff opened 4 months ago
Yes it is big-endian.
Does the on-device plotting also have an outlier?
I forgot I had taken this picture because it wasn't in my camera roll. It's from the same test run as the results I attached above. I don't see the outlier result in the picture.
The on-device plotting decodes the raw data separately. If there's no outliner in the raw data, the error could be introduced from the conversion.
Are you able to replicate the similar error?
Another test run with a different light. In the CSV there's a significant drop in the last 72 samples that isn't reflected in the on-device plotting. Picture included in the zip.
Going over some results, something that seemed weird:
I read the serial data reference to mean that the 16-bit values are transmitted big-endian. I think bytes-to-uint16 conversion process is producing the wrong results for some inputs.
I'm attaching the output from tklamp.py and also the raw bytes.
Output2024-05-17-19.43.09.zip