mirror of https://github.com/ArduPilot/ardupilot
Plane: use HAL_EFI_ENABLED
This commit is contained in:
parent
cc6d799e7a
commit
0937d903a1
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue