AP_Compass: stop using AHRS as conduit for Compass pointer

This commit is contained in:
Peter Barker 2021-07-26 10:32:11 +10:00 committed by Peter Barker
parent ca58aa9c5f
commit 1d9bfdf8dd

View File

@ -785,7 +785,8 @@ void Compass::init()
}
#ifndef HAL_BUILD_AP_PERIPH
AP::ahrs().set_compass(this);
// updating the AHRS orientation updates our own orientation:
AP::ahrs().update_orientation();
#endif
init_done = true;