From 17e949eedb308b5fb2955cfa9be83ba38f4c512b Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 29 Nov 2022 13:40:16 +0900 Subject: [PATCH] AP_Mount: fix siyi version display --- libraries/AP_Mount/AP_Mount_Siyi.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libraries/AP_Mount/AP_Mount_Siyi.cpp b/libraries/AP_Mount/AP_Mount_Siyi.cpp index 0499758791..bd07d4260c 100644 --- a/libraries/AP_Mount/AP_Mount_Siyi.cpp +++ b/libraries/AP_Mount/AP_Mount_Siyi.cpp @@ -299,23 +299,23 @@ void AP_Mount_Siyi::process_packet() // display camera firmware version debug("Mount: SiyiCam fw:%u.%u.%u", - (unsigned)_msg_buff[_msg_buff_data_start+1], // firmware major version - (unsigned)_msg_buff[_msg_buff_data_start+2], // firmware minor version - (unsigned)_msg_buff[_msg_buff_data_start+3]); // firmware revision + (unsigned)_msg_buff[_msg_buff_data_start+2], // firmware major version + (unsigned)_msg_buff[_msg_buff_data_start+1], // firmware minor version + (unsigned)_msg_buff[_msg_buff_data_start+0]); // firmware revision // display gimbal info to user gcs().send_text(MAV_SEVERITY_INFO, "Mount: Siyi fw:%u.%u.%u", - (unsigned)_msg_buff[_msg_buff_data_start+5], // firmware major version - (unsigned)_msg_buff[_msg_buff_data_start+6], // firmware minor version - (unsigned)_msg_buff[_msg_buff_data_start+7]); // firmware revision + (unsigned)_msg_buff[_msg_buff_data_start+6], // firmware major version + (unsigned)_msg_buff[_msg_buff_data_start+5], // firmware minor version + (unsigned)_msg_buff[_msg_buff_data_start+4]); // firmware revision // display zoom firmware version #if AP_MOUNT_SIYI_DEBUG if (_parsed_msg.data_bytes_received >= 12) { debug("Mount: SiyiZoom fw:%u.%u.%u", - (unsigned)_msg_buff[_msg_buff_data_start+9], // firmware major version - (unsigned)_msg_buff[_msg_buff_data_start+10], // firmware minor version - (unsigned)_msg_buff[_msg_buff_data_start+11]); // firmware revision + (unsigned)_msg_buff[_msg_buff_data_start+10], // firmware major version + (unsigned)_msg_buff[_msg_buff_data_start+9], // firmware minor version + (unsigned)_msg_buff[_msg_buff_data_start+8]); // firmware revision } #endif break;