diff --git a/libraries/SITL/SIM_ADSB.cpp b/libraries/SITL/SIM_ADSB.cpp index 31752d6d84..c445fbb270 100644 --- a/libraries/SITL/SIM_ADSB.cpp +++ b/libraries/SITL/SIM_ADSB.cpp @@ -192,7 +192,7 @@ void ADSB::send_report(void) ADSB_Vehicle &vehicle = vehicles[i]; Location loc = home; - loc.offset(vehicle.position.x, vehicle.position.y); + loc.offset_double(vehicle.position.x, vehicle.position.y); // re-init when exceeding radius range if (home.get_distance(loc) > _sitl->adsb_radius_m) { diff --git a/libraries/SITL/SIM_Aircraft.cpp b/libraries/SITL/SIM_Aircraft.cpp index cc9bf1719b..22d1374665 100644 --- a/libraries/SITL/SIM_Aircraft.cpp +++ b/libraries/SITL/SIM_Aircraft.cpp @@ -782,7 +782,7 @@ void Aircraft::smooth_sensors(void) smoothing.position += (smoothing.velocity_ef * delta_time).todouble(); smoothing.location = home; - smoothing.location.offset(smoothing.position.x, smoothing.position.y); + smoothing.location.offset_double(smoothing.position.x, smoothing.position.y); smoothing.location.alt = static_cast(home.alt - smoothing.position.z * 100.0f); smoothing.last_update_us = now; diff --git a/libraries/SITL/SIM_SerialProximitySensor.cpp b/libraries/SITL/SIM_SerialProximitySensor.cpp index dadca432d7..a1929e2da7 100644 --- a/libraries/SITL/SIM_SerialProximitySensor.cpp +++ b/libraries/SITL/SIM_SerialProximitySensor.cpp @@ -97,7 +97,7 @@ float SerialProximitySensor::measure_distance_at_angle_bf(const Location &locati for (int8_t x=-num_post_offset; x deck_size) { yaw_rate = 0; return Vector2f(0,0); @@ -172,7 +172,7 @@ void ShipSim::send_report(void) send a GLOBAL_POSITION_INT messages */ Location loc = home; - loc.offset(ship.position.x, ship.position.y); + loc.offset_double(ship.position.x, ship.position.y); int32_t alt; bool have_alt = false;