diff --git a/drivers/sensors/fakesensor.c b/drivers/sensors/fakesensor.c index 66843edc1b..fa3e564c3c 100644 --- a/drivers/sensors/fakesensor.c +++ b/drivers/sensors/fakesensor.c @@ -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,