mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_NavEKF2: use beacon singleton
This commit is contained in:
parent
d9c30f489f
commit
82df167ad4
@ -700,7 +700,7 @@ void NavEKF2_core::readAirSpdData()
|
|||||||
void NavEKF2_core::readRngBcnData()
|
void NavEKF2_core::readRngBcnData()
|
||||||
{
|
{
|
||||||
// get the location of the beacon data
|
// get the location of the beacon data
|
||||||
const AP_Beacon *beacon = _ahrs->get_beacon();
|
const AP_Beacon *beacon = AP::beacon();
|
||||||
|
|
||||||
// exit immediately if no beacon object
|
// exit immediately if no beacon object
|
||||||
if (beacon == nullptr) {
|
if (beacon == nullptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user