Browse Source

Sub: remove unused calculation of longitude scale

master
Peter Barker 6 years ago committed by Peter Barker
parent
commit
d7735a316a
  1. 2
      ArduSub/commands.cpp

2
ArduSub/commands.cpp

@ -71,7 +71,7 @@ bool Sub::set_home(const Location& loc, bool lock) @@ -71,7 +71,7 @@ bool Sub::set_home(const Location& loc, bool lock)
// init inav and compass declination
if (!home_was_set) {
// update navigation scalers. used to offset the shrinking longitude as we go towards the poles
scaleLongDown = longitude_scale(loc);
scaleLongDown = loc.longitude_scale();
// record home is set
Log_Write_Event(DATA_SET_HOME);

Loading…
Cancel
Save