Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo: Update to use mavlink 0.10.4 #302

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

patrickelectric
Copy link
Member

No description provided.

Signed-off-by: Patrick José Pereira <[email protected]>
Copy link
Collaborator

@joaoantoniocardoso joaoantoniocardoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in the Pi, w/ QGC as the client. The controls are not working properly:


2023-11-22T17:04:10.069979Z DEBUG                                     MavlinkCamera-1 ThreadId(09) handle_message{header=MavHeader { system_id: 254, component_id: 190, sequence: 81 } PARAM_EXT_SET(PARAM_EXT_SET_DATA { target_system: 1, target_component: 100, param_id: ['9', '9', '6', '3', '7', '7', '6', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'], param_value: ['\u{16}', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 'Ð', '¥', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', 'Ð', '¥', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', 'P', '¦', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', '/', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\u{4}', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 'à', '\u{84}', '\u{82}', 'V', '¤', '\u{7f}', '\0', '\0', 'C', 'a', 'm', 'e', 'r', 'a', 'I', 'O', 'L', 'o', 'g', ':', ' ', 'U', 'p', 'd', 'a', 't', 'e', ' ', 'F', 'a', 'c', 't', ' ', 'f', 'r', 'o', 'm', ' ', 'c', 'a', 'm', 'e', 'r', 'a', ' ', '"', '9', '9', '6', '3', '7', '7', '6', '"', '\n', '\0', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'], param_type: MAV_PARAM_EXT_TYPE_INT64 }) component_id=100}: src/mavlink/mavlink_camera.rs:204: Received message
2023-11-22T17:04:10.073084Z ERROR                                     MavlinkCamera-1 ThreadId(09) handle_message{header=MavHeader { system_id: 254, component_id: 190, sequence: 81 } PARAM_EXT_SET(PARAM_EXT_SET_DATA { target_system: 1, target_component: 100, param_id: ['9', '9', '6', '3', '7', '7', '6', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'], param_value: ['\u{16}', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 'Ð', '¥', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', 'Ð', '¥', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', 'P', '¦', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', '/', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\u{4}', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 'à', '\u{84}', '\u{82}', 'V', '¤', '\u{7f}', '\0', '\0', 'C', 'a', 'm', 'e', 'r', 'a', 'I', 'O', 'L', 'o', 'g', ':', ' ', 'U', 'p', 'd', 'a', 't', 'e', ' ', 'F', 'a', 'c', 't', ' ', 'f', 'r', 'o', 'm', ' ', 'c', 'a', 'm', 'e', 'r', 'a', ' ', '"', '9', '9', '6', '3', '7', '7', '6', '"', '\n', '\0', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'], param_type: MAV_PARAM_EXT_TYPE_INT64 }) component_id=100}:handle_param_ext_set{header=MavHeader { system_id: 254, component_id: 190, sequence: 81 } data=PARAM_EXT_SET_DATA { target_system: 1, target_component: 100, param_id: ['9', '9', '6', '3', '7', '7', '6', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'], param_value: ['\u{16}', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 'Ð', '¥', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', 'Ð', '¥', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', 'P', '¦', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', '/', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\u{4}', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 'à', '\u{84}', '\u{82}', 'V', '¤', '\u{7f}', '\0', '\0', 'C', 'a', 'm', 'e', 'r', 'a', 'I', 'O', 'L', 'o', 'g', ':', ' ', 'U', 'p', 'd', 'a', 't', 'e', ' ', 'F', 'a', 'c', 't', ' ', 'f', 'r', 'o', 'm', ' ', 'c', 'a', 'm', 'e', 'r', 'a', ' ', '"', '9', '9', '6', '3', '7', '7', '6', '"', '\n', '\0', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'], param_type: MAV_PARAM_EXT_TYPE_INT64 } component_id=100}: src/video/video_source_local.rs:593: Failed to get control "Auto Exposure, Bias" (10094867) from device "/dev/video0": Custom { kind: Other, error: "cannot handle control type" }
2023-11-22T17:04:10.073905Z ERROR                                     MavlinkCamera-1 ThreadId(09) handle_message{header=MavHeader { system_id: 254, component_id: 190, sequence: 81 } PARAM_EXT_SET(PARAM_EXT_SET_DATA { target_system: 1, target_component: 100, param_id: ['9', '9', '6', '3', '7', '7', '6', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'], param_value: ['\u{16}', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 'Ð', '¥', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', 'Ð', '¥', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', 'P', '¦', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', '/', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\u{4}', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 'à', '\u{84}', '\u{82}', 'V', '¤', '\u{7f}', '\0', '\0', 'C', 'a', 'm', 'e', 'r', 'a', 'I', 'O', 'L', 'o', 'g', ':', ' ', 'U', 'p', 'd', 'a', 't', 'e', ' ', 'F', 'a', 'c', 't', ' ', 'f', 'r', 'o', 'm', ' ', 'c', 'a', 'm', 'e', 'r', 'a', ' ', '"', '9', '9', '6', '3', '7', '7', '6', '"', '\n', '\0', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'], param_type: MAV_PARAM_EXT_TYPE_INT64 }) component_id=100}:handle_param_ext_set{header=MavHeader { system_id: 254, component_id: 190, sequence: 81 } data=PARAM_EXT_SET_DATA { target_system: 1, target_component: 100, param_id: ['9', '9', '6', '3', '7', '7', '6', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'], param_value: ['\u{16}', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 'Ð', '¥', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', 'Ð', '¥', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', 'P', '¦', 'Ã', 'w', 'ü', '\u{7f}', '\0', '\0', '/', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\u{4}', '\0', '\0', '\0', '\0', '\0', '\0', '\0', 'à', '\u{84}', '\u{82}', 'V', '¤', '\u{7f}', '\0', '\0', 'C', 'a', 'm', 'e', 'r', 'a', 'I', 'O', 'L', 'o', 'g', ':', ' ', 'U', 'p', 'd', 'a', 't', 'e', ' ', 'F', 'a', 'c', 't', ' ', 'f', 'r', 'o', 'm', ' ', 'c', 'a', 'm', 'e', 'r', 'a', ' ', '"', '9', '9', '6', '3', '7', '7', '6', '"', '\n', '\0', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', 'ÿ', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0'], param_type: MAV_PARAM_EXT_TYPE_INT64 } component_id=100}: src/video/video_source_local.rs:593: Failed to get control "ISO Sensitivity" (10094871) from device "/dev/video0": Custom { kind: Other, error: "cannot handle control type" }
2023-11-22T17:04:10.229989Z DEBUG                                     MavlinkCamera-1 ThreadId(09) heartbeat_loop{component_id=100}: src/mavlink/mavlink_camera.rs:159: Heartbeat sent

Copy link
Collaborator

@joaoantoniocardoso joaoantoniocardoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, those errors are not related. They are probably from #283

@joaoantoniocardoso joaoantoniocardoso merged commit 7086b6b into mavlink:master Nov 22, 2023
3 checks passed
@patrickelectric
Copy link
Member Author

Ok, those errors are not related. They are probably from #283

Something that may help with such errors is to move to the latest rust-mavlink release (0.12.2) that also fixes some serialization problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants