mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 08:13:56 -04:00
GCS_MAVLink: split AP_HAL_SITL and HAL_SIM_ENABLED
This commit is contained in:
parent
7ad9609fb7
commit
e0561b0ca1
@ -3852,7 +3852,7 @@ void GCS_MAVLINK::send_banner()
|
|||||||
|
|
||||||
void GCS_MAVLINK::send_simstate() const
|
void GCS_MAVLINK::send_simstate() const
|
||||||
{
|
{
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if AP_SIM_ENABLED
|
||||||
SITL::SIM *sitl = AP::sitl();
|
SITL::SIM *sitl = AP::sitl();
|
||||||
if (sitl == nullptr) {
|
if (sitl == nullptr) {
|
||||||
return;
|
return;
|
||||||
@ -3863,7 +3863,7 @@ void GCS_MAVLINK::send_simstate() const
|
|||||||
|
|
||||||
void GCS_MAVLINK::send_sim_state() const
|
void GCS_MAVLINK::send_sim_state() const
|
||||||
{
|
{
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if AP_SIM_ENABLED
|
||||||
SITL::SIM *sitl = AP::sitl();
|
SITL::SIM *sitl = AP::sitl();
|
||||||
if (sitl == nullptr) {
|
if (sitl == nullptr) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user