diff --git a/libraries/AP_EFI/AP_EFI.cpp b/libraries/AP_EFI/AP_EFI.cpp index 5c44d5d84b..7583090bf5 100644 --- a/libraries/AP_EFI/AP_EFI.cpp +++ b/libraries/AP_EFI/AP_EFI.cpp @@ -34,7 +34,7 @@ const AP_Param::GroupInfo AP_EFI::var_info[] = { // @Param: _TYPE // @DisplayName: EFI communication type // @Description: What method of communication is used for EFI #1 - // @Values: 0:None,1:Serial-MS,2:NWPMU,3:Serial-Lutan,5:DroneCAN + // @Values: 0:None,1:Serial-MS,2:NWPMU,3:Serial-Lutan,5:DroneCAN,6:Currawong-ECU // @User: Advanced // @RebootRequired: True AP_GROUPINFO_FLAGS("_TYPE", 1, AP_EFI, type, 0, AP_PARAM_FLAG_ENABLE), @@ -89,6 +89,11 @@ void AP_EFI::init(void) case Type::DroneCAN: #if HAL_EFI_DRONECAN_ENABLED backend = new AP_EFI_DroneCAN(*this); +#endif + break; + case Type::CurrawongECU: +#if HAL_EFI_CURRAWONG_ECU_ENABLED + backend = new AP_EFI_Currawong_ECU(*this); #endif break; default: diff --git a/libraries/AP_EFI/AP_EFI.h b/libraries/AP_EFI/AP_EFI.h index 8b60b0711a..d50e1572a4 100644 --- a/libraries/AP_EFI/AP_EFI.h +++ b/libraries/AP_EFI/AP_EFI.h @@ -83,6 +83,7 @@ public: Lutan = 3, // LOWEHEISER = 4, DroneCAN = 5, + CurrawongECU = 6, }; static AP_EFI *get_singleton(void) {