mirror of https://github.com/ArduPilot/ardupilot
AP_Declination: fixed example build
This commit is contained in:
parent
54b826a583
commit
261eb6d841
|
@ -61,8 +61,8 @@ static float get_declination(float lat, float lon)
|
|||
uint8_t latmin_index, lonmin_index;
|
||||
|
||||
// Validate input values
|
||||
lat = constrain(lat, -90, 90);
|
||||
lon = constrain(lon, -180, 180);
|
||||
lat = constrain_float(lat, -90, 90);
|
||||
lon = constrain_float(lon, -180, 180);
|
||||
|
||||
latmin = floor(lat/5)*5;
|
||||
lonmin = floor(lon/5)*5;
|
||||
|
|
Loading…
Reference in New Issue