AP_Beacon: Use SITL singleton

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2018-05-10 20:32:37 -03:00 committed by Francisco Ferreira
parent 4ae6bd2c7e
commit 37fbd6aaa1
1 changed files with 2 additions and 2 deletions

View File

@ -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)