mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 22:03:34 +08:00
claude first attempt at converting https://github.com/PX4/PX4-Autopilot/pull/25503
This commit is contained in:
+1
-4
@@ -68,10 +68,7 @@ set(msg_files
|
||||
DistanceSensorModeChangeRequest.msg
|
||||
DronecanNodeStatus.msg
|
||||
Ekf2Timestamps.msg
|
||||
EscFlasherRequest.msg
|
||||
EscFlasherRequestAck.msg
|
||||
EscFlasherStatus.msg
|
||||
EscFlasherVersions.msg
|
||||
EscFirmwareUpdateStatus.msg
|
||||
EscReport.msg
|
||||
EscStatus.msg
|
||||
EstimatorAidSource1d.msg
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
uint8 esc_index # Current ESC being flashed (0-based)
|
||||
uint8 esc_count # Total ESCs being flashed
|
||||
uint8 progress_pct # 0-100 for current ESC
|
||||
uint8 overall_progress_pct # 0-100 for entire operation
|
||||
|
||||
uint8 status
|
||||
uint8 STATUS_IDLE = 0
|
||||
uint8 STATUS_CONNECTING = 1
|
||||
uint8 STATUS_READING_INFO = 2
|
||||
uint8 STATUS_ERASING = 3
|
||||
uint8 STATUS_WRITING = 4
|
||||
uint8 STATUS_COMPLETE = 5
|
||||
uint8 STATUS_FAILED = 6
|
||||
uint8 STATUS_REBOOT_REQUIRED = 7
|
||||
|
||||
uint8 error
|
||||
uint8 ERROR_NONE = 0
|
||||
uint8 ERROR_NOT_DISARMED = 1
|
||||
uint8 ERROR_NO_FIRMWARE_FILE = 2
|
||||
uint8 ERROR_COMMS_TIMEOUT = 3
|
||||
uint8 ERROR_CRC_MISMATCH = 4
|
||||
uint8 ERROR_VERIFICATION_FAILED = 5
|
||||
uint8 ERROR_UNSUPPORTED_HARDWARE = 6
|
||||
uint8 ERROR_DSHOT_STOP_FAILED = 7
|
||||
|
||||
uint32 current_firmware_version # Currently installed version
|
||||
uint32 new_firmware_version # Version being written
|
||||
@@ -1,16 +0,0 @@
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
uint32 msg_id # Give a unique message identifier so we can compare when getting an ACK
|
||||
|
||||
uint8 request # Request type
|
||||
# use these items as enum values, they can never change
|
||||
uint8 REQUEST_ESC_INFO = 0 # Request ESC_INFO from one or more ESCs
|
||||
uint8 REQUEST_FLASHING = 1 # Request flashing for one or more ESCs
|
||||
uint8 REQUEST_CANCEL = 2 # Cancel any pending request and return control to DShot
|
||||
uint8 REQUEST_FLASHING_COMPLETE = 3 # Flashing complete, return control to DShot
|
||||
|
||||
uint8 motor_flags # Flags for which motors are being requested
|
||||
# motor_flags bit 0 : Set to 1 if ESC0 is being flashed
|
||||
# motor_flags bit 1 : Set to 1 if ESC1 is being flashed
|
||||
# motor_flags bit 2 : Set to 1 if ESC2 is being flashed
|
||||
# motor_flags bit 3 : Set to 1 if ESC3 is being flashed
|
||||
@@ -1,31 +0,0 @@
|
||||
# ESC Flasher Request Acknowledgement uORB message.
|
||||
# Used for acknowledging the ESC Flasher command being received.
|
||||
# Follows the MAVLink COMMAND_ACK message definition
|
||||
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
uint32 msg_id # Message identifier that we are responding to
|
||||
|
||||
uint8 request # Request type
|
||||
# use these items as enum values, they can never change
|
||||
uint8 REQUEST_ESC_INFO = 0 # Request ESC_INFO from one or more ESCs
|
||||
uint8 REQUEST_FLASHING = 1 # Request flashing for one or more ESCs
|
||||
uint8 REQUEST_CANCEL = 2 # Cancel any pending request and return control to DShot
|
||||
uint8 REQUEST_FLASHING_COMPLETE = 3 # Flashing complete, return control to DShot
|
||||
|
||||
uint8 result # Command acknowledge result
|
||||
# Result cases. This follows the MAVLink MAV_RESULT enum definition
|
||||
uint8 ESC_FLASHER_CMD_RESULT_ACCEPTED = 0 # Command ACCEPTED and EXECUTED |
|
||||
uint8 ESC_FLASHER_CMD_RESULT_TEMPORARILY_REJECTED = 1 # Command TEMPORARY REJECTED/DENIED |
|
||||
uint8 ESC_FLASHER_CMD_RESULT_DENIED = 2 # Command PERMANENTLY DENIED |
|
||||
uint8 ESC_FLASHER_CMD_RESULT_UNSUPPORTED = 3 # Command UNKNOWN/UNSUPPORTED |
|
||||
uint8 ESC_FLASHER_CMD_RESULT_FAILED = 4 # Command executed, but failed |
|
||||
uint8 ESC_FLASHER_CMD_RESULT_IN_PROGRESS = 5 # Command being executed |
|
||||
uint8 ESC_FLASHER_CMD_RESULT_CANCELLED = 6 # Command Canceled
|
||||
|
||||
uint8[16] fw_major # Firmware versions major
|
||||
uint8[16] fw_minor # Firmware versions minor
|
||||
uint16 fw_flags # Bit flags for valid fw versions
|
||||
|
||||
uint32[16] gpio_pins # GPIO pin definitions
|
||||
uint16 gpio_flags # Bit flags for valid gpio pins
|
||||
@@ -1,7 +0,0 @@
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
bool esc_flashing_in_progress
|
||||
|
||||
uint8 version_major
|
||||
|
||||
uint8 version_minor
|
||||
@@ -1,25 +0,0 @@
|
||||
# ESC Flasher Versions uOrb message
|
||||
#
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
uint8 result
|
||||
# use these items as enum values, they can never change
|
||||
uint8 RESULT_UNKNOWN = 0 #
|
||||
uint8 RESULT_SUCCESS = 1 #
|
||||
uint8 RESULT_NO_DATA = 2 #
|
||||
uint8 RESULT_MISMATCH = 3 #
|
||||
uint8 RESULT_NEEDS_UPDATE = 4 #
|
||||
uint8 RESULT_BROKEN_ESC = 5 #
|
||||
|
||||
uint16 versions_valid # Bit-flags to identify valid version information
|
||||
|
||||
uint8[16] esc_type
|
||||
# use these items as enum values, they can never change
|
||||
uint8 ESC_TYPE_UNKNOWN = 0 # Unknown
|
||||
uint8 ESC_TYPE_AM32 = 1 # AM32 2.18+
|
||||
uint8 ESC_TYPE_BLHELI = 2 # BLHeli
|
||||
uint8 ESC_TYPE_AM32_OLD = 3 # AM32 2.16
|
||||
uint8 ESC_TYPE_BLUEJAY = 4 # BlueJay
|
||||
|
||||
uint8[16] versions_major # Firmware versions major
|
||||
uint8[16] versions_minor # Firmware versions minor
|
||||
@@ -111,6 +111,7 @@ uint16 VEHICLE_CMD_EXTERNAL_WIND_ESTIMATE = 43004
|
||||
uint32 VEHICLE_CMD_PX4_INTERNAL_START = 65537 # Start of PX4 internal only vehicle commands (> UINT16_MAX).
|
||||
uint32 VEHICLE_CMD_SET_GPS_GLOBAL_ORIGIN = 100000 # Sets the GPS coordinates of the vehicle local origin (0,0,0) position. |Unused|Unused|Unused|Unused|Latitude (WGS-84)|Longitude (WGS-84)|[m] Altitude (AMSL from GNSS, positive above ground)|
|
||||
uint32 VEHICLE_CMD_SET_NAV_STATE = 100001 # Change mode by specifying nav_state directly. |nav_state|Unused|Unused|Unused|Unused|Unused|Unused|
|
||||
uint32 VEHICLE_CMD_ESC_FIRMWARE_UPDATE = 100002 # Trigger AM32 ESC firmware update from SD card. |ESC index (0-based, 255=all)|ESC type (0=AM32)|Unused|Unused|Unused|Unused|Unused|
|
||||
|
||||
uint8 VEHICLE_MOUNT_MODE_RETRACT = 0 # Load and keep safe position (Roll,Pitch,Yaw) from permanent memory and stop stabilization.
|
||||
uint8 VEHICLE_MOUNT_MODE_NEUTRAL = 1 # Load and keep neutral position (Roll,Pitch,Yaw) from permanent memory.
|
||||
|
||||
Reference in New Issue
Block a user