mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Compass: stop using AHRS as conduit for Compass pointer
This commit is contained in:
parent
ca58aa9c5f
commit
1d9bfdf8dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user