Skip to content
Snippets Groups Projects
Commit 3ff091ef authored by rmackay9's avatar rmackay9
Browse files

ArduCopter: inertial nav - only initialise horizontal position when home is initialised

parent e8595498
No related branches found
No related tags found
No related merge requests found
......@@ -190,8 +190,6 @@ static void init_home()
#if INERTIAL_NAV_XY == ENABLED
// set inertial nav's home position
inertial_nav.set_current_position(g_gps->longitude, g_gps->latitude);
inertial_nav.set_altitude(home.alt);
inertial_nav.set_velocity_z(0);
#endif
if (g.log_bitmask & MASK_LOG_CMD)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment