Plane: use HAL_EFI_ENABLED

This commit is contained in:
Andrew Tridgell 2021-06-08 14:16:46 +10:00
parent cc6d799e7a
commit 0937d903a1
4 changed files with 5 additions and 5 deletions

View File

@ -112,7 +112,7 @@ const AP_Scheduler::Task Plane::scheduler_tasks[] = {
#if LANDING_GEAR_ENABLED == ENABLED
SCHED_TASK(landing_gear_update, 5, 50),
#endif
#if EFI_ENABLED
#if HAL_EFI_ENABLED
SCHED_TASK(efi_update, 10, 200),
#endif
};
@ -329,7 +329,7 @@ void Plane::compass_save()
void Plane::efi_update(void)
{
#if EFI_ENABLED
#if HAL_EFI_ENABLED
g2.efi.update();
#endif
}

View File

@ -1199,7 +1199,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
// @User: Advanced
AP_GROUPINFO("DSPOILER_AILMTCH", 21, ParametersG2, crow_flap_aileron_matching, 100),
#if EFI_ENABLED
#if HAL_EFI_ENABLED
// @Group: EFI
// @Path: ../libraries/AP_EFI/AP_EFI.cpp
AP_SUBGROUPINFO(efi, "EFI", 22, ParametersG2, AP_EFI),

View File

@ -560,7 +560,7 @@ public:
AP_Float fwd_thr_batt_voltage_min;
AP_Int8 fwd_thr_batt_idx;
#if EFI_ENABLED
#if HAL_EFI_ENABLED
// EFI Engine Monitor
AP_EFI efi;
#endif

View File

@ -89,7 +89,7 @@ void Plane::init_ardupilot()
AP::compass().init();
// init EFI monitoring
#if EFI_ENABLED
#if HAL_EFI_ENABLED
g2.efi.init();
#endif