Sub: Location gets ahrs from singleton

This commit is contained in:
Peter Barker 2018-05-30 11:34:29 +10:00 committed by Francisco Ferreira
parent 7015d42ab2
commit 31c6d7aaa0

View File

@ -116,7 +116,6 @@ void Sub::init_ardupilot()
#endif
// init Location class
Location_Class::set_ahrs(&ahrs);
#if AP_TERRAIN_AVAILABLE && AC_TERRAIN
Location_Class::set_terrain(&terrain);
wp_nav.set_terrain(&terrain);