bytesnz/vproweather

Negative wind chill

harrydehix opened this issue · 2 comments

My wind chill value is always negative. E.g. at this moment it returns rtWindChill = -256.
No error occurred.

I´m having the same issue. By investigating the RTDATA2 struct declaration i discovered an error. unused5 should be a uint8_t not uint16_t. I used the offical Davis Serial Communication sheet for lookup, its helpful. Source This fixes all wrong values after dewpoint.

Hey @Nyancat92. Good spotting. It indeed should be a uint8_t. It also looks like it is missing 22 bytes of stuff at the end, which is weird. If I create a branch with the full loop2 data in it would you be able to give it a test? I don't have access to vpro to test anymore. Ah right - it is all the graph pointer stuff. Nevermind. I have pushed a branch for the unused5 fix (#6). Would you be able to test that? Thanks