-
Notifications
You must be signed in to change notification settings - Fork 1.7k
regen mavlink headers + add missing values to funcs in mavlink.c #11060
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
Conversation
PR Compliance Guide 🔍(Compliance updated until commit 30c5bbf)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit 30c5bbf
|
|||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||||||
User description
This PR is just running the lib/main/MAVLink/generate.sh script (after a small fix) to update the mavlink libraries as they were quite out of date and missing many files.
Tested on an SB F405 wing mini, everything seemed to work fine including receiver and telemetry
PR Type
Enhancement, Documentation
Description
This description is generated by an AI tool. It may have inaccuracies
Regenerated MAVLink headers using the
lib/main/MAVLink/generate.shscript to update outdated librariesAdded comprehensive new message definitions including
BATTERY_INFO(message ID 372) with voltage, current, capacity, and health metricsEnhanced multiple existing messages with new fields:
gimbal_device_idandcamera_device_idfields to camera and gimbal messages for device identificationMANUAL_CONTROLmessage with 10 new fields includingbuttons2, auxiliary inputs (aux1-aux6), and extension flagsangular_velocity_zto autopilot gimbal state messagedelta_yaw,delta_yaw_velocityfields to gimbal attitude statusEnhanced MAVLink signing infrastructure with status tracking (
mavlink_signing_status_tenum andlast_statusfield)Added new parse state
MAVLINK_PARSE_STATE_SIGNATURE_WAIT_BAD_CRCfor improved error handlingAdded
pack_statusfunctions across multiple message types for status-aware encodingUpdated message lengths and CRC values to reflect structural changes
Improved documentation comments to clarify NaN/unknown value handling and field usage
Changed primary XML identifier from index-based to hash-based system
Fixed typo in CRC initialization documentation
Added standard MAVLink dialect header file
Tested on SB F405 wing mini with receiver and telemetry working correctly
Diagram Walkthrough
File Walkthrough
2 files
mavlink_msg_battery_info.h
Add BATTERY_INFO MAVLink message definition with comprehensive batterytelemetrylib/main/MAVLink/common/mavlink_msg_battery_info.h
BATTERY_INFO(message ID 372)current limits, capacity, health metrics, and metadata
message
mavlink.h
Add standard MAVLink dialect header filelib/main/MAVLink/standard/mavlink.h
9 files
mavlink_msg_camera_information.h
Enhance CAMERA_INFORMATION message with device ID fields and improveddocumentationlib/main/MAVLink/common/mavlink_msg_camera_information.h
for unknown data
gimbal_device_idandcamera_device_idfor deviceassociation
mavlink_msg_camera_information_pack_statusfunction forstatus-aware packing
mavlink_msg_camera_tracking_image_status.h
Add camera device ID field to CAMERA_TRACKING_IMAGE_STATUS messagelib/main/MAVLink/common/mavlink_msg_camera_tracking_image_status.h
camera_device_idto identify non-MAVLink camerasmavlink_msg_camera_tracking_image_status_pack_statusfunctionnew field
mavlink_msg_open_drone_id_system.h
Extended Open Drone ID System Message with Altitude and Timestamplib/main/MAVLink/common/mavlink_msg_open_drone_id_system.h
operator_altitude_geo(float) and
timestamp(uint32_t)mavlink_msg_open_drone_id_system_pack_statusfunctionmavlink_msg_manual_control.h
Enhanced Manual Control Message with Extended Button and AuxiliaryInputslib/main/MAVLink/common/mavlink_msg_manual_control.h
buttons2,enabled_extensions,s,t,aux1-aux6MAVPACKEDmacro to structure definitionbuttonsto clarify it covers buttons0-15
mavlink_msg_manual_control_pack_statusfunctionfields
mavlink_msg_camera_settings.h
Added Camera Device ID to Camera Settings Messagelib/main/MAVLink/common/mavlink_msg_camera_settings.h
camera_device_id(uint8_t) to identify non-MAVLinkcameras
zoomLevelandfocusLevelto clarifypercentage range
mavlink_msg_camera_settings_pack_statusfunctionparameter
mavlink_types.h
Enhanced MAVLink Signing with Status Trackinglib/main/MAVLink/mavlink_types.h
MAVLINK_PARSE_STATE_SIGNATURE_WAIT_BAD_CRCtoenum
mavlink_signing_status_twith signing status codeslast_statusfield tomavlink_signing_tstructure to tracksigning status
mavlink_msg_autopilot_state_for_gimbal_device.h
Add angular velocity Z field to autopilot gimbal state messagelib/main/MAVLink/common/mavlink_msg_autopilot_state_for_gimbal_device.h
angular_velocity_zfieldMAVPACKEDmacro to struct definitionpack_statusfunction for encoding with status structuremav_array_memcpytomav_array_assign_floatfor quaternionarray handling
mavlink_msg_gimbal_device_information.h
Add gimbal device ID field to gimbal information messagelib/main/MAVLink/common/mavlink_msg_gimbal_device_information.h
gimbal_device_idfield to support shared component IDspack_statusfunction for status-aware encodingmav_array_memcpytomav_array_assign_charfor string arrayspipe characters
mavlink_msg_gimbal_device_attitude_status.h
Extend gimbal attitude status with delta yaw and device IDlib/main/MAVLink/common/mavlink_msg_gimbal_device_attitude_status.h
delta_yaw,delta_yaw_velocity, andgimbal_device_idpack_statusandencode_statusfunctionsmav_array_memcpytomav_array_assign_floatfor quaternionhandling
1 files
checksum.h
Fix typo in CRC initialization documentationlib/main/MAVLink/checksum.h
'Initialize'
1 files
mavlink.h
Update MAVLink primary XML identifier to hash-based systemlib/main/MAVLink/common/mavlink.h
MAVLINK_PRIMARY_XML_IDXtoMAVLINK_PRIMARY_XML_HASHwith newhash value
101 files