fakesensor: transform ddmm.mmmm to dd.mmmmmm.

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
丁欣童 2021-07-21 19:30:58 +08:00 committed by Xiang Xiao
parent 2a8e7b064d
commit 26fedb2770

View File

@ -204,6 +204,9 @@ static inline void fakesensor_read_gps(FAR struct fakesensor_s *sensor)
gps.longitude = -gps.longitude;
}
gps.latitude /= 100.0f;
gps.longitude /= 100.0f;
gps.height = altitude;
sensor->lower.push_event(sensor->lower.priv, &gps,