mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Mount: Fix brace enclosed initializer list for older compilers
This commit is contained in:
parent
62950169f7
commit
9b06395573
@ -328,19 +328,16 @@ void AP_Mount_Siyi::process_packet()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// consume and display camera firmware version
|
// consume and display camera firmware version
|
||||||
_fw_version = {
|
_fw_version = {};
|
||||||
.camera = {
|
_fw_version.camera.major = _msg_buff[_msg_buff_data_start+2]; // firmware major version
|
||||||
.major = _msg_buff[_msg_buff_data_start+2], // firmware major version
|
_fw_version.camera.minor = _msg_buff[_msg_buff_data_start+1]; // firmware minor version
|
||||||
.minor = _msg_buff[_msg_buff_data_start+1], // firmware minor version
|
_fw_version.camera.patch = _msg_buff[_msg_buff_data_start+0]; // firmware revision (aka patch)
|
||||||
.patch = _msg_buff[_msg_buff_data_start+0], // firmware revision (aka patch)
|
|
||||||
},
|
_fw_version.gimbal.major = _msg_buff[_msg_buff_data_start+6]; // firmware major version
|
||||||
.gimbal = {
|
_fw_version.gimbal.minor = _msg_buff[_msg_buff_data_start+5]; // firmware minor version
|
||||||
.major = _msg_buff[_msg_buff_data_start+6], // firmware major version
|
_fw_version.gimbal.patch = _msg_buff[_msg_buff_data_start+4]; // firmware revision (aka patch)
|
||||||
.minor = _msg_buff[_msg_buff_data_start+5], // firmware minor version
|
|
||||||
.patch = _msg_buff[_msg_buff_data_start+4], // firmware revision (aka patch)
|
_fw_version.received = true;
|
||||||
},
|
|
||||||
.received = true,
|
|
||||||
};
|
|
||||||
|
|
||||||
// display camera info to user
|
// display camera info to user
|
||||||
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Mount: Siyi camera fw v%u.%u.%u",
|
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Mount: Siyi camera fw v%u.%u.%u",
|
||||||
|
Loading…
Reference in New Issue
Block a user