Libcanard v0 about float16 to float

  1. When i use static_air_temperature in RawAirData,I find that the fractional part of the temperature always varies at.0,.25,.50, and.75,just like :

static_air_temperature: 320.0000
static_air_temperature: 320.2500
static_air_temperature: 320.5000
static_air_temperature: 320.7500

  1. I find that the problem is canardConvertFloat16ToNativeFloat, this function seems to cause the above problem .
    Has anyone come across it?

This is not a problem, you are just witnessing the normal quantization effects of floating point numbers. If you need higher resolution, use float32.

Got it .Thanks!