Mount: Siyi waits for non-zero cam firmware version

This commit is contained in:
Randy Mackay 2024-02-08 15:22:21 +09:00 committed by Peter Barker
parent 4bcac076f6
commit 0fca670f85
1 changed files with 7 additions and 2 deletions

View File

@ -358,6 +358,11 @@ void AP_Mount_Siyi::process_packet()
_fw_version.gimbal.minor = _msg_buff[_msg_buff_data_start+5]; // firmware minor version _fw_version.gimbal.minor = _msg_buff[_msg_buff_data_start+5]; // firmware minor version
_fw_version.gimbal.patch = _msg_buff[_msg_buff_data_start+4]; // firmware revision (aka patch) _fw_version.gimbal.patch = _msg_buff[_msg_buff_data_start+4]; // firmware revision (aka patch)
// camera firmware version may be all zero soon after startup. giveup and try again later
if (_fw_version.camera.major == 0 && _fw_version.camera.minor == 0 && _fw_version.camera.patch == 0) {
break;
}
_fw_version.received = true; _fw_version.received = true;
// display camera info to user // display camera info to user