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
|
#if LANDING_GEAR_ENABLED == ENABLED
|
||||||
SCHED_TASK(landing_gear_update, 5, 50),
|
SCHED_TASK(landing_gear_update, 5, 50),
|
||||||
#endif
|
#endif
|
||||||
#if EFI_ENABLED
|
#if HAL_EFI_ENABLED
|
||||||
SCHED_TASK(efi_update, 10, 200),
|
SCHED_TASK(efi_update, 10, 200),
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
@ -329,7 +329,7 @@ void Plane::compass_save()
|
|||||||
|
|
||||||
void Plane::efi_update(void)
|
void Plane::efi_update(void)
|
||||||
{
|
{
|
||||||
#if EFI_ENABLED
|
#if HAL_EFI_ENABLED
|
||||||
g2.efi.update();
|
g2.efi.update();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -1199,7 +1199,7 @@ const AP_Param::GroupInfo ParametersG2::var_info[] = {
|
|||||||
// @User: Advanced
|
// @User: Advanced
|
||||||
AP_GROUPINFO("DSPOILER_AILMTCH", 21, ParametersG2, crow_flap_aileron_matching, 100),
|
AP_GROUPINFO("DSPOILER_AILMTCH", 21, ParametersG2, crow_flap_aileron_matching, 100),
|
||||||
|
|
||||||
#if EFI_ENABLED
|
#if HAL_EFI_ENABLED
|
||||||
// @Group: EFI
|
// @Group: EFI
|
||||||
// @Path: ../libraries/AP_EFI/AP_EFI.cpp
|
// @Path: ../libraries/AP_EFI/AP_EFI.cpp
|
||||||
AP_SUBGROUPINFO(efi, "EFI", 22, ParametersG2, AP_EFI),
|
AP_SUBGROUPINFO(efi, "EFI", 22, ParametersG2, AP_EFI),
|
||||||
|
@ -560,7 +560,7 @@ public:
|
|||||||
AP_Float fwd_thr_batt_voltage_min;
|
AP_Float fwd_thr_batt_voltage_min;
|
||||||
AP_Int8 fwd_thr_batt_idx;
|
AP_Int8 fwd_thr_batt_idx;
|
||||||
|
|
||||||
#if EFI_ENABLED
|
#if HAL_EFI_ENABLED
|
||||||
// EFI Engine Monitor
|
// EFI Engine Monitor
|
||||||
AP_EFI efi;
|
AP_EFI efi;
|
||||||
#endif
|
#endif
|
||||||
|
@ -89,7 +89,7 @@ void Plane::init_ardupilot()
|
|||||||
AP::compass().init();
|
AP::compass().init();
|
||||||
|
|
||||||
// init EFI monitoring
|
// init EFI monitoring
|
||||||
#if EFI_ENABLED
|
#if HAL_EFI_ENABLED
|
||||||
g2.efi.init();
|
g2.efi.init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user