AP_Math: correct examples build on px4

This commit is contained in:
Peter Barker 2016-05-31 15:33:08 +10:00 committed by Lucas De Marchi
parent be26988b93
commit cb16d0b6c6

View File

@ -37,7 +37,7 @@ static const struct {
static struct Location location_from_point(Vector2f pt) static struct Location location_from_point(Vector2f pt)
{ {
struct Location loc = {0}; struct Location loc = {};
loc.lat = pt.x * 1.0e7f; loc.lat = pt.x * 1.0e7f;
loc.lng = pt.y * 1.0e7f; loc.lng = pt.y * 1.0e7f;
return loc; return loc;