fakesensor: transform ddmm.mmmm to dd.mmmmmm.
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
2a8e7b064d
commit
26fedb2770
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user