mirror of https://github.com/ArduPilot/ardupilot
AP_AHRS: split AP_HAL_SITL and HAL_SIM_ENABLED
This commit is contained in:
parent
318678ac96
commit
7ad9609fb7
|
@ -3141,7 +3141,7 @@ void AP_AHRS::Log_Write()
|
|||
Write_AHRS2();
|
||||
Write_POS();
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
#if AP_AHRS_SIM_ENABLED
|
||||
AP::sitl()->Log_Write_SIMSTATE();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef AP_AHRS_SIM_ENABLED
|
||||
#define AP_AHRS_SIM_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL)
|
||||
#define AP_AHRS_SIM_ENABLED AP_SIM_ENABLED
|
||||
#endif
|
||||
|
||||
#if AP_AHRS_SIM_ENABLED
|
||||
|
|
Loading…
Reference in New Issue