mirror of https://github.com/ArduPilot/ardupilot
AP_Beacon: Use SITL singleton
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
4ae6bd2c7e
commit
37fbd6aaa1
|
@ -41,9 +41,9 @@ extern const AP_HAL::HAL& hal;
|
|||
|
||||
// constructor
|
||||
AP_Beacon_SITL::AP_Beacon_SITL(AP_Beacon &frontend) :
|
||||
AP_Beacon_Backend(frontend)
|
||||
AP_Beacon_Backend(frontend),
|
||||
sitl(AP::sitl())
|
||||
{
|
||||
sitl = (SITL::SITL *)AP_Param::find_object("SIM_");
|
||||
}
|
||||
|
||||
// return true if sensor is basically healthy (we are receiving data)
|
||||
|
|
Loading…
Reference in New Issue