mirror of https://github.com/ArduPilot/ardupilot
AP_Proximity: add AP::proximity() singleton getter
This commit is contained in:
parent
8ce4f73550
commit
b086b39f89
|
@ -465,3 +465,12 @@ bool AP_Proximity::sensor_failed() const
|
|||
}
|
||||
|
||||
AP_Proximity *AP_Proximity::_singleton;
|
||||
|
||||
namespace AP {
|
||||
|
||||
AP_Proximity *proximity()
|
||||
{
|
||||
return AP_Proximity::get_singleton();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -161,3 +161,7 @@ private:
|
|||
void detect_instance(uint8_t instance);
|
||||
void update_instance(uint8_t instance);
|
||||
};
|
||||
|
||||
namespace AP {
|
||||
AP_Proximity *proximity();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue