AP_BLHeli: Update to support newer targets and protocols

This commit is contained in:
Michael du Breuil 2019-05-22 17:09:41 -07:00 committed by Andrew Tridgell
parent 0afd58fb99
commit a1fda8bc76
2 changed files with 4 additions and 2 deletions

View File

@ -700,6 +700,8 @@ bool AP_BLHeli::BL_ConnectEx(void)
case 0x3306: case 0x3306:
case 0x3406: case 0x3406:
case 0x3506: case 0x3506:
case 0x2B06:
case 0x4706:
blheli.interface_mode[blheli.chan] = imARM_BLB; blheli.interface_mode[blheli.chan] = imARM_BLB;
debug("Interface type imARM_BLB"); debug("Interface type imARM_BLB");
break; break;
@ -734,7 +736,7 @@ bool AP_BLHeli::BL_PageErase(void)
if (!BL_SendBuf(sCMD, 2)) { if (!BL_SendBuf(sCMD, 2)) {
return false; return false;
} }
return BL_GetACK(1000) == brSUCCESS; return BL_GetACK(3000) == brSUCCESS;
} }
return false; return false;
} }

View File

@ -118,7 +118,7 @@
*/ */
#define SERIAL_4WAY_VER_MAIN 20 #define SERIAL_4WAY_VER_MAIN 20
#define SERIAL_4WAY_VER_SUB_1 (uint8_t) 0 #define SERIAL_4WAY_VER_SUB_1 (uint8_t) 0
#define SERIAL_4WAY_VER_SUB_2 (uint8_t) 02 #define SERIAL_4WAY_VER_SUB_2 (uint8_t) 03
#define SERIAL_4WAY_PROTOCOL_VER 107 #define SERIAL_4WAY_PROTOCOL_VER 107
// *** end // *** end