mirror of https://github.com/ArduPilot/ardupilot
AP_EFI: Add Currawong ECU to known types
This commit is contained in:
parent
75f3d7cd12
commit
26332b119e
|
@ -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:
|
||||
|
|
|
@ -83,6 +83,7 @@ public:
|
|||
Lutan = 3,
|
||||
// LOWEHEISER = 4,
|
||||
DroneCAN = 5,
|
||||
CurrawongECU = 6,
|
||||
};
|
||||
|
||||
static AP_EFI *get_singleton(void) {
|
||||
|
|
Loading…
Reference in New Issue