You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -30,30 +30,30 @@ public class msg_camera_information extends MAVLinkMessage {
30
30
publiclongtime_boot_ms;
31
31
32
32
/**
33
-
* Version of the camera firmware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff)
33
+
* Version of the camera firmware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). Use 0 if not known.
34
34
*/
35
-
@Description("Version of the camera firmware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff)")
35
+
@Description("Version of the camera firmware, encoded as: (Dev & 0xff) << 24 | (Patch & 0xff) << 16 | (Minor & 0xff) << 8 | (Major & 0xff). Use 0 if not known.")
36
36
@Units("")
37
37
publiclongfirmware_version;
38
38
39
39
/**
40
-
* Focal length
40
+
* Focal length. Use NaN if not known.
41
41
*/
42
-
@Description("Focal length")
42
+
@Description("Focal length. Use NaN if not known.")
43
43
@Units("mm")
44
44
publicfloatfocal_length;
45
45
46
46
/**
47
-
* Image sensor size horizontal
47
+
* Image sensor size horizontal. Use NaN if not known.
48
48
*/
49
-
@Description("Image sensor size horizontal")
49
+
@Description("Image sensor size horizontal. Use NaN if not known.")
50
50
@Units("mm")
51
51
publicfloatsensor_size_h;
52
52
53
53
/**
54
-
* Image sensor size vertical
54
+
* Image sensor size vertical. Use NaN if not known.
55
55
*/
56
-
@Description("Image sensor size vertical")
56
+
@Description("Image sensor size vertical. Use NaN if not known.")
57
57
@Units("mm")
58
58
publicfloatsensor_size_v;
59
59
@@ -65,23 +65,23 @@ public class msg_camera_information extends MAVLinkMessage {
65
65
publiclongflags;
66
66
67
67
/**
68
-
* Horizontal image resolution
68
+
* Horizontal image resolution. Use 0 if not known.
69
69
*/
70
-
@Description("Horizontal image resolution")
70
+
@Description("Horizontal image resolution. Use 0 if not known.")
71
71
@Units("pix")
72
72
publicintresolution_h;
73
73
74
74
/**
75
-
* Vertical image resolution
75
+
* Vertical image resolution. Use 0 if not known.
76
76
*/
77
-
@Description("Vertical image resolution")
77
+
@Description("Vertical image resolution. Use 0 if not known.")
78
78
@Units("pix")
79
79
publicintresolution_v;
80
80
81
81
/**
82
-
* Camera definition version (iteration)
82
+
* Camera definition version (iteration). Use 0 if not known.
83
83
*/
84
-
@Description("Camera definition version (iteration)")
84
+
@Description("Camera definition version (iteration). Use 0 if not known.")
85
85
@Units("")
86
86
publicintcam_definition_version;
87
87
@@ -100,19 +100,26 @@ public class msg_camera_information extends MAVLinkMessage {
100
100
publicshortmodel_name[] = newshort[32];
101
101
102
102
/**
103
-
* Reserved for a lens ID
103
+
* Reserved for a lens ID. Use 0 if not known.
104
104
*/
105
-
@Description("Reserved for a lens ID")
105
+
@Description("Reserved for a lens ID. Use 0 if not known.")
106
106
@Units("")
107
107
publicshortlens_id;
108
108
109
109
/**
110
-
* Camera definition URI (if any, otherwise only basic functions will be available). HTTP- (http://) and MAVLink FTP- (mavlinkftp://) formatted URIs are allowed (and both must be supported by any GCS that implements the Camera Protocol). The definition file may be xz compressed, which will be indicated by the file extension .xml.xz (a GCS that implements the protocol must support decompressing the file). The string needs to be zero terminated.
110
+
* Camera definition URI (if any, otherwise only basic functions will be available). HTTP- (http://) and MAVLink FTP- (mavlinkftp://) formatted URIs are allowed (and both must be supported by any GCS that implements the Camera Protocol). The definition file may be xz compressed, which will be indicated by the file extension .xml.xz (a GCS that implements the protocol must support decompressing the file). The string needs to be zero terminated. Use a zero-length string if not known.
111
111
*/
112
-
@Description("Camera definition URI (if any, otherwise only basic functions will be available). HTTP- (http://) and MAVLink FTP- (mavlinkftp://) formatted URIs are allowed (and both must be supported by any GCS that implements the Camera Protocol). The definition file may be xz compressed, which will be indicated by the file extension .xml.xz (a GCS that implements the protocol must support decompressing the file). The string needs to be zero terminated.")
112
+
@Description("Camera definition URI (if any, otherwise only basic functions will be available). HTTP- (http://) and MAVLink FTP- (mavlinkftp://) formatted URIs are allowed (and both must be supported by any GCS that implements the Camera Protocol). The definition file may be xz compressed, which will be indicated by the file extension .xml.xz (a GCS that implements the protocol must support decompressing the file). The string needs to be zero terminated. Use a zero-length string if not known.")
113
113
@Units("")
114
114
publicbytecam_definition_uri[] = newbyte[140];
115
115
116
+
/**
117
+
* Gimbal id of a gimbal associated with this camera. This is the component id of the gimbal device, or 1-6 for non mavlink gimbals. Use 0 if no gimbal is associated with the camera.
118
+
*/
119
+
@Description("Gimbal id of a gimbal associated with this camera. This is the component id of the gimbal device, or 1-6 for non mavlink gimbals. Use 0 if no gimbal is associated with the camera.")
120
+
@Units("")
121
+
publicshortgimbal_device_id;
122
+
116
123
117
124
/**
118
125
* Generates the payload for a mavlink message for a message of this type
@@ -152,6 +159,7 @@ public MAVLinkPacket pack() {
152
159
153
160
154
161
if (isMavlink2) {
162
+
packet.payload.putUnsignedByte(gimbal_device_id);
155
163
156
164
}
157
165
returnpacket;
@@ -193,6 +201,7 @@ public void unpack(MAVLinkPayload payload) {
@@ -113,6 +113,13 @@ public class msg_gimbal_device_attitude_status extends MAVLinkMessage {
113
113
@Units("rad/s")
114
114
publicfloatdelta_yaw_velocity;
115
115
116
+
/**
117
+
* This field is to be used if the gimbal manager and the gimbal device are the same component and hence have the same component ID. This field is then set a number between 1-6. If the component ID is separate, this field is not required and must be set to 0.
118
+
*/
119
+
@Description("This field is to be used if the gimbal manager and the gimbal device are the same component and hence have the same component ID. This field is then set a number between 1-6. If the component ID is separate, this field is not required and must be set to 0.")
120
+
@Units("")
121
+
publicshortgimbal_device_id;
122
+
116
123
117
124
/**
118
125
* Generates the payload for a mavlink message for a message of this type
@@ -142,6 +149,7 @@ public MAVLinkPacket pack() {
142
149
if (isMavlink2) {
143
150
packet.payload.putFloat(delta_yaw);
144
151
packet.payload.putFloat(delta_yaw_velocity);
152
+
packet.payload.putUnsignedByte(gimbal_device_id);
145
153
146
154
}
147
155
returnpacket;
@@ -173,6 +181,7 @@ public void unpack(MAVLinkPayload payload) {
0 commit comments