AP_Mount: siyi a8 fix for gimbal-config-info message

Siyi A8 uses a different format from Z10 for this message
This commit is contained in:
Randy Mackay 2022-12-09 14:06:25 +09:00
parent 57d60f86b5
commit 6bd4afeb48
1 changed files with 2 additions and 1 deletions

View File

@ -384,7 +384,8 @@ void AP_Mount_Siyi::process_packet()
break; break;
case SiyiCommandId::ACQUIRE_GIMBAL_CONFIG_INFO: { case SiyiCommandId::ACQUIRE_GIMBAL_CONFIG_INFO: {
if (_parsed_msg.data_bytes_received != 5) { if (_parsed_msg.data_bytes_received != 5 && // ZR10 firmware version reply is 5 bytes
_parsed_msg.data_bytes_received != 7) { // A8 firmware version reply is 7 bytes
#if AP_MOUNT_SIYI_DEBUG #if AP_MOUNT_SIYI_DEBUG
unexpected_len = true; unexpected_len = true;
#endif #endif