Math: fixed example warnings

This commit is contained in:
Andrew Tridgell 2012-12-19 11:18:00 +11:00
parent b8843489be
commit a76688e630
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ static void test_one_offset(struct Location &loc,
uint32_t t1 = hal.scheduler->micros();
location_offset(&loc2, ofs_north, ofs_east);
hal.console->printf("location_offset took %u usec\n",
hal.scheduler->micros() - t1);
(unsigned)(hal.scheduler->micros() - t1));
dist2 = get_distance(&loc, &loc2);
bearing2 = get_bearing_cd(&loc, &loc2) * 0.01;
float brg_error = bearing2-bearing;