From 9cb6c987d42f9445a9fabab16fca3fbccf096a71 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 5 Aug 2013 12:37:51 +1000 Subject: [PATCH] AP_Math: fixed example build --- libraries/AP_Math/examples/location/location.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Math/examples/location/location.pde b/libraries/AP_Math/examples/location/location.pde index 25418ba5d3..ad182e458f 100644 --- a/libraries/AP_Math/examples/location/location.pde +++ b/libraries/AP_Math/examples/location/location.pde @@ -73,11 +73,11 @@ static void test_one_offset(const struct Location &loc, loc2 = loc; uint32_t t1 = hal.scheduler->micros(); - location_offset(&loc2, ofs_north, ofs_east); + location_offset(loc2, ofs_north, ofs_east); hal.console->printf("location_offset took %u usec\n", (unsigned)(hal.scheduler->micros() - t1)); dist2 = get_distance(loc, loc2); - bearing2 = get_bearing_cd(&loc, &loc2) * 0.01; + bearing2 = get_bearing_cd(loc, loc2) * 0.01; float brg_error = bearing2-bearing; if (brg_error > 180) { brg_error -= 360;