mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
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:
parent
17e21fed22
commit
2c366bf3d7
@ -376,7 +376,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
|
||||||
unexpected_len = true;
|
unexpected_len = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user