Negative temperature

Hi,

I had a flight in the snow.

The thing i have noticed, is that when temperature goes below 0°C than i have strange readings.

How does APM sends negative temperature?

Here is the short video about it: (Top right corner)
http://www.youtube.com/watch?v=bqQpYdXpJB0&feature=youtu.be

Thx,
Gábor

Hi Gábor,
I think that is probably a bug in the OSD firmware. The temperature is sent as a signed 16 bit intteger in 100ths of a degree C. I suspect the OSD code is formatting it as a signed number.
Maybe contact the OSD firmware maintainers to confirm and get a fix?
Cheers, Tridge

[quote=“tridge”]Hi Gábor,
I think that is probably a bug in the OSD firmware. The temperature is sent as a signed 16 bit intteger in 100ths of a degree C. I suspect the OSD code is formatting it as a signed number.
Maybe contact the OSD firmware maintainers to confirm and get a fix?
Cheers, Tridge[/quote]

Hi Andrew,

That would be me. :unamused:

You are absolutely right.
We had it as; static uint8_t
So it does not handles negative numbers.

I was sure about the variable, but it turned out that…
Sorry, my fault.

I will fix it.

Thx,
Gábor

Gabek, Where can I find out more about this OSD?

[quote=“gabek”]That would be me. :unamused:
[/quote]
ha, classic!

Thanks!

Hi Craig3DR,

Our project is here: https://code.google.com/p/minimosd-extra/

[quote=“tridge”][quote=“gabek”]That would be me. :unamused:
[/quote]
ha, classic!

Thanks![/quote]

Ohh well…

I think we have changed it when tried to reduce code size. (Without thinking…)

It is fixed now.
Just comitted.

Gábor