diff --git a/mavsdk/action.py b/mavsdk/action.py index 5c114d69..5b0cd4be 100644 --- a/mavsdk/action.py +++ b/mavsdk/action.py @@ -109,7 +109,7 @@ class ActionResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -563,10 +563,10 @@ async def goto_location( Parameters ---------- - latitude_deg : double + latitude_deg : float Latitude (in degrees) - longitude_deg : double + longitude_deg : float Longitude (in degrees) absolute_altitude_m : float @@ -617,10 +617,10 @@ async def goto_location_fixedwing( Parameters ---------- - latitude_deg : double + latitude_deg : float Latitude (in degrees) - longitude_deg : double + longitude_deg : float Longitude (in degrees) absolute_altitude_m : float @@ -679,13 +679,13 @@ async def do_orbit( yaw_behavior : OrbitYawBehavior Yaw behavior of vehicle (ORBIT_YAW_BEHAVIOUR) - latitude_deg : double + latitude_deg : float Center point latitude in degrees. NAN: use current latitude for center - longitude_deg : double + longitude_deg : float Center point longitude in degrees. NAN: use current longitude for center - absolute_altitude_m : double + absolute_altitude_m : float Center point altitude in meters. NAN: use current altitude for center Raises @@ -751,7 +751,7 @@ async def set_actuator(self, index, value): Parameters ---------- - index : int32_t + index : int Index of actuator (starting with 1) value : float @@ -782,7 +782,7 @@ async def set_relay(self, index, setting): Parameters ---------- - index : int32_t + index : int Index of relay (starting with 0) setting : RelayCommand @@ -987,10 +987,10 @@ async def set_gps_global_origin( Parameters ---------- - latitude_deg : double + latitude_deg : float Latitude (in degrees) - longitude_deg : double + longitude_deg : float Longitude (in degrees) absolute_altitude_m : float @@ -1032,10 +1032,10 @@ async def set_home( use_current_location : bool Use current location - latitude_deg : double + latitude_deg : float Latitude (in degrees) - longitude_deg : double + longitude_deg : float Longitude (in degrees) absolute_altitude_m : float diff --git a/mavsdk/action_server.py b/mavsdk/action_server.py index fc7e4269..b7c47d3e 100644 --- a/mavsdk/action_server.py +++ b/mavsdk/action_server.py @@ -311,7 +311,7 @@ class ActionServerResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ diff --git a/mavsdk/arm_authorizer_server.py b/mavsdk/arm_authorizer_server.py index d3b5b144..806ac99c 100644 --- a/mavsdk/arm_authorizer_server.py +++ b/mavsdk/arm_authorizer_server.py @@ -85,7 +85,7 @@ class ArmAuthorizerServerResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -228,7 +228,7 @@ async def arm_authorization(self): Yields ------- - system_id : uint32_t + system_id : int vehicle system id @@ -249,7 +249,7 @@ async def accept_arm_authorization(self, valid_time_s): Parameters ---------- - valid_time_s : int32_t + valid_time_s : int Time in seconds for which this authorization is valid Raises @@ -281,7 +281,7 @@ async def reject_arm_authorization(self, temporarily, reason, extra_info): reason : RejectionReason Reason for the arm to be rejected - extra_info : int32_t + extra_info : int Extra information specific to the rejection reason (see https://mavlink.io/en/services/arm_authorization.html) Raises diff --git a/mavsdk/calibration.py b/mavsdk/calibration.py index d73ebf45..58c1572c 100644 --- a/mavsdk/calibration.py +++ b/mavsdk/calibration.py @@ -15,7 +15,7 @@ class CalibrationResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -198,7 +198,7 @@ class ProgressData: has_status_text : bool Whether this ProgressData contains a 'status_text' or not - status_text : std::string + status_text : str Instruction text """ diff --git a/mavsdk/camera.py b/mavsdk/camera.py index e882c7e5..0334ed35 100644 --- a/mavsdk/camera.py +++ b/mavsdk/camera.py @@ -90,10 +90,10 @@ class Option: Parameters ---------- - option_id : std::string + option_id : str Name of the option (machine readable) - option_description : std::string + option_description : str Description of the option (human readable) """ @@ -145,10 +145,10 @@ class Setting: Parameters ---------- - setting_id : std::string + setting_id : str Name of a setting (machine readable) - setting_description : std::string + setting_description : str Description of the setting (human readable). This field is meant to be read from the drone, ignore it when setting. option : Option @@ -222,13 +222,13 @@ class SettingOptions: Parameters ---------- - component_id : int32_t + component_id : int Component ID - setting_id : std::string + setting_id : str Name of the setting (machine readable) - setting_description : std::string + setting_description : str Description of the setting (human readable) options : [Option] @@ -319,19 +319,19 @@ class VideoStreamSettings: frame_rate_hz : float Frames per second - horizontal_resolution_pix : uint32_t + horizontal_resolution_pix : int Horizontal resolution (in pixels) - vertical_resolution_pix : uint32_t + vertical_resolution_pix : int Vertical resolution (in pixels) - bit_rate_b_s : uint32_t + bit_rate_b_s : int Bit rate (in bits per second) - rotation_deg : uint32_t + rotation_deg : int Video image rotation (clockwise, 0-359 degrees) - uri : std::string + uri : str Video stream URI horizontal_fov_deg : float @@ -434,7 +434,7 @@ class VideoStreamInfo: Parameters ---------- - stream_id : int32_t + stream_id : int Stream ID settings : VideoStreamSettings @@ -606,7 +606,7 @@ class ModeUpdate: Parameters ---------- - component_id : int32_t + component_id : int Component ID mode : Mode @@ -660,7 +660,7 @@ class VideoStreamUpdate: Parameters ---------- - component_id : int32_t + component_id : int Component ID video_stream_info : VideoStreamInfo @@ -718,7 +718,7 @@ class Storage: Parameters ---------- - component_id : int32_t + component_id : int Component ID video_on : bool @@ -739,13 +739,13 @@ class Storage: recording_time_s : float Elapsed time since starting the video recording (in seconds) - media_folder_name : std::string + media_folder_name : str Current folder name where media are saved storage_status : StorageStatus Storage status - storage_id : uint32_t + storage_id : int Storage ID starting at 1 storage_type : StorageType @@ -987,7 +987,7 @@ class StorageUpdate: Parameters ---------- - component_id : int32_t + component_id : int Component ID storage : Storage @@ -1042,7 +1042,7 @@ class CurrentSettingsUpdate: Parameters ---------- - component_id : int32_t + component_id : int Component ID current_settings : [Setting] @@ -1109,7 +1109,7 @@ class PossibleSettingOptionsUpdate: Parameters ---------- - component_id : int32_t + component_id : int Component ID setting_options : [SettingOptions] @@ -1179,7 +1179,7 @@ class CameraResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -1353,10 +1353,10 @@ class Position: Parameters ---------- - latitude_deg : double + latitude_deg : float Latitude in degrees (range: -90 to +90) - longitude_deg : double + longitude_deg : float Longitude in degrees (range: -180 to +180) absolute_altitude_m : float @@ -1584,7 +1584,7 @@ class CaptureInfo: Parameters ---------- - component_id : int32_t + component_id : int Component ID position : Position @@ -1596,16 +1596,16 @@ class CaptureInfo: attitude_euler_angle : EulerAngle Attitude of the camera when the picture was taken (euler angle) - time_utc_us : uint64_t + time_utc_us : int Timestamp in UTC (since UNIX epoch) in microseconds is_success : bool True if the capture was successful - index : int32_t + index : int Zero-based index of this image since vehicle was armed - file_url : std::string + file_url : str Download URL of this image """ @@ -1707,13 +1707,13 @@ class Information: Parameters ---------- - component_id : int32_t + component_id : int Component ID - vendor_name : std::string + vendor_name : str Name of the camera vendor - model_name : std::string + model_name : str Name of the camera model focal_length_mm : float @@ -1725,10 +1725,10 @@ class Information: vertical_sensor_size_mm : float Vertical sensor size - horizontal_resolution_px : uint32_t + horizontal_resolution_px : int Horizontal image resolution in pixels - vertical_resolution_px : uint32_t + vertical_resolution_px : int Vertical image resolution in pixels """ @@ -1921,7 +1921,7 @@ async def take_photo(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -1945,7 +1945,7 @@ async def start_photo_interval(self, component_id, interval_s): Parameters ---------- - component_id : int32_t + component_id : int Component ID interval_s : float @@ -1975,7 +1975,7 @@ async def stop_photo_interval(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -1999,7 +1999,7 @@ async def start_video(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -2023,7 +2023,7 @@ async def stop_video(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -2047,10 +2047,10 @@ async def start_video_streaming(self, component_id, stream_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID - stream_id : int32_t + stream_id : int video stream id Raises @@ -2077,10 +2077,10 @@ async def stop_video_streaming(self, component_id, stream_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID - stream_id : int32_t + stream_id : int video stream id Raises @@ -2105,7 +2105,7 @@ async def set_mode(self, component_id, mode): Parameters ---------- - component_id : int32_t + component_id : int Component ID mode : Mode @@ -2139,7 +2139,7 @@ async def list_photos(self, component_id, photos_range): Parameters ---------- - component_id : int32_t + component_id : int Component ID photos_range : PhotosRange @@ -2222,7 +2222,7 @@ async def get_mode(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Returns @@ -2276,7 +2276,7 @@ async def get_video_stream_info(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Returns @@ -2351,7 +2351,7 @@ async def get_storage(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Returns @@ -2405,7 +2405,7 @@ async def get_current_settings(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Returns @@ -2461,7 +2461,7 @@ async def get_possible_setting_options(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Returns @@ -2498,7 +2498,7 @@ async def set_setting(self, component_id, setting): Parameters ---------- - component_id : int32_t + component_id : int Component ID setting : Setting @@ -2530,7 +2530,7 @@ async def get_setting(self, component_id, setting): Parameters ---------- - component_id : int32_t + component_id : int Component ID (0/all not available) setting : Setting @@ -2570,10 +2570,10 @@ async def format_storage(self, component_id, storage_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID - storage_id : int32_t + storage_id : int Storage identify to be format Raises @@ -2600,7 +2600,7 @@ async def reset_settings(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -2624,7 +2624,7 @@ async def zoom_in_start(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -2648,7 +2648,7 @@ async def zoom_out_start(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -2672,7 +2672,7 @@ async def zoom_stop(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -2696,7 +2696,7 @@ async def zoom_range(self, component_id, range): Parameters ---------- - component_id : int32_t + component_id : int Component ID range : float @@ -2724,7 +2724,7 @@ async def track_point(self, component_id, point_x, point_y, radius): Parameters ---------- - component_id : int32_t + component_id : int Component ID point_x : float @@ -2764,7 +2764,7 @@ async def track_rectangle( Parameters ---------- - component_id : int32_t + component_id : int Component ID top_left_x : float @@ -2812,7 +2812,7 @@ async def track_stop(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -2836,7 +2836,7 @@ async def focus_in_step(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -2860,7 +2860,7 @@ async def focus_out_step(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -2884,7 +2884,7 @@ async def focus_in_start(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -2908,7 +2908,7 @@ async def focus_out_start(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -2932,7 +2932,7 @@ async def focus_stop(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -2956,7 +2956,7 @@ async def focus_range(self, component_id, range): Parameters ---------- - component_id : int32_t + component_id : int Component ID range : float @@ -2987,7 +2987,7 @@ async def focus_meters(self, component_id, distance_m): Parameters ---------- - component_id : int32_t + component_id : int Component ID distance_m : float @@ -3015,7 +3015,7 @@ async def focus_auto(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -3039,7 +3039,7 @@ async def focus_auto_single(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises @@ -3063,7 +3063,7 @@ async def focus_auto_continuous(self, component_id): Parameters ---------- - component_id : int32_t + component_id : int Component ID Raises diff --git a/mavsdk/camera_server.py b/mavsdk/camera_server.py index 84db2212..86ef67e3 100644 --- a/mavsdk/camera_server.py +++ b/mavsdk/camera_server.py @@ -106,13 +106,13 @@ class Information: Parameters ---------- - vendor_name : std::string + vendor_name : str Name of the camera vendor - model_name : std::string + model_name : str Name of the camera model - firmware_version : std::string + firmware_version : str Camera firmware version in major[.minor[.patch[.dev]]] format focal_length_mm : float @@ -124,19 +124,19 @@ class Information: vertical_sensor_size_mm : float Vertical sensor size - horizontal_resolution_px : uint32_t + horizontal_resolution_px : int Horizontal image resolution in pixels - vertical_resolution_px : uint32_t + vertical_resolution_px : int Vertical image resolution in pixels - lens_id : uint32_t + lens_id : int Lens ID - definition_file_version : uint32_t + definition_file_version : int Camera definition file version (iteration) - definition_file_uri : std::string + definition_file_uri : str Camera definition URI (http or mavlink ftp) image_in_video_mode_supported : bool @@ -299,7 +299,7 @@ class VideoStreaming: has_rtsp_server : bool True if the capture was successful - rtsp_uri : std::string + rtsp_uri : str RTSP URI (e.g. rtsp://192.168.1.42:8554/live) """ @@ -353,10 +353,10 @@ class Position: Parameters ---------- - latitude_deg : double + latitude_deg : float Latitude in degrees (range: -90 to +90) - longitude_deg : double + longitude_deg : float Longitude in degrees (range: -180 to +180) absolute_altitude_m : float @@ -519,16 +519,16 @@ class CaptureInfo: attitude_quaternion : Quaternion Attitude of the camera when the picture was taken (quaternion) - time_utc_us : uint64_t + time_utc_us : int Timestamp in UTC (since UNIX epoch) in microseconds is_success : bool True if the capture was successful - index : int32_t + index : int Index from TakePhotoResponse - file_url : std::string + file_url : str Download URL of this image """ @@ -613,7 +613,7 @@ class CameraServerResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -773,7 +773,7 @@ class StorageInformation: storage_status : StorageStatus Storage status - storage_id : uint32_t + storage_id : int Storage ID starting at 1 storage_type : StorageType @@ -1043,7 +1043,7 @@ class CaptureStatus: video_status : VideoStatus Current status of video capturing - image_count : int32_t + image_count : int Total number of images captured ('forever', or until reset using MAV_CMD_STORAGE_FORMAT) """ @@ -1482,7 +1482,7 @@ async def take_photo(self): Yields ------- - index : int32_t + index : int """ @@ -1535,7 +1535,7 @@ async def start_video(self): Yields ------- - stream_id : int32_t + stream_id : int video stream id @@ -1584,7 +1584,7 @@ async def stop_video(self): Yields ------- - stream_id : int32_t + stream_id : int video stream id @@ -1631,7 +1631,7 @@ async def start_video_streaming(self): Yields ------- - stream_id : int32_t + stream_id : int video stream id @@ -1684,7 +1684,7 @@ async def stop_video_streaming(self): Yields ------- - stream_id : int32_t + stream_id : int video stream id @@ -1781,7 +1781,7 @@ async def storage_information(self): Yields ------- - storage_id : int32_t + storage_id : int """ @@ -1841,7 +1841,7 @@ async def capture_status(self): Yields ------- - reserved : int32_t + reserved : int reserved, just make protoc-gen-mavsdk working @@ -1898,7 +1898,7 @@ async def format_storage(self): Yields ------- - storage_id : int32_t + storage_id : int the storage id to format @@ -1947,7 +1947,7 @@ async def reset_settings(self): Yields ------- - reserved : int32_t + reserved : int reserved, just make protoc-gen-mavsdk working @@ -1996,7 +1996,7 @@ async def zoom_in_start(self): Yields ------- - reserved : int32_t + reserved : int reserved, just make protoc-gen-mavsdk working @@ -2045,7 +2045,7 @@ async def zoom_out_start(self): Yields ------- - reserved : int32_t + reserved : int reserved, just make protoc-gen-mavsdk working @@ -2094,7 +2094,7 @@ async def zoom_stop(self): Yields ------- - reserved : int32_t + reserved : int reserved, just make protoc-gen-mavsdk working @@ -2188,7 +2188,7 @@ async def focus_in_step(self): Yields ------- - reserved : int32_t + reserved : int reserved, just make protoc-gen-mavsdk working @@ -2237,7 +2237,7 @@ async def focus_out_step(self): Yields ------- - reserved : int32_t + reserved : int reserved, just make protoc-gen-mavsdk working @@ -2286,7 +2286,7 @@ async def focus_in_start(self): Yields ------- - reserved : int32_t + reserved : int reserved, just make protoc-gen-mavsdk working @@ -2335,7 +2335,7 @@ async def focus_out_start(self): Yields ------- - reserved : int32_t + reserved : int reserved, just make protoc-gen-mavsdk working @@ -2384,7 +2384,7 @@ async def focus_stop(self): Yields ------- - reserved : int32_t + reserved : int reserved, just make protoc-gen-mavsdk working @@ -2529,7 +2529,7 @@ async def focus_auto(self): Yields ------- - reserved : int32_t + reserved : int reserved, just make protoc-gen-mavsdk working @@ -2576,7 +2576,7 @@ async def focus_auto_single(self): Yields ------- - reserved : int32_t + reserved : int reserved, just make protoc-gen-mavsdk working @@ -2627,7 +2627,7 @@ async def focus_auto_continuous(self): Yields ------- - reserved : int32_t + reserved : int reserved, just make protoc-gen-mavsdk working @@ -2754,7 +2754,7 @@ async def tracking_off_command(self): Yields ------- - dummy : int32_t + dummy : int Unused diff --git a/mavsdk/component_metadata.py b/mavsdk/component_metadata.py index f9315a23..50673120 100644 --- a/mavsdk/component_metadata.py +++ b/mavsdk/component_metadata.py @@ -63,7 +63,7 @@ class MetadataData: Parameters ---------- - json_metadata : std::string + json_metadata : str The JSON metadata """ @@ -108,7 +108,7 @@ class ComponentMetadataResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -283,13 +283,13 @@ class MetadataUpdate: Parameters ---------- - compid : uint32_t + compid : int The component ID type : MetadataType The metadata type - json_metadata : std::string + json_metadata : str The JSON metadata """ @@ -384,7 +384,7 @@ async def request_component(self, compid): Parameters ---------- - compid : uint32_t + compid : int The component ID to request @@ -433,7 +433,7 @@ async def get_metadata(self, compid, metadata_type): Parameters ---------- - compid : uint32_t + compid : int The component ID to request metadata_type : MetadataType diff --git a/mavsdk/component_metadata_server.py b/mavsdk/component_metadata_server.py index e404e0e8..5bb9f0e0 100644 --- a/mavsdk/component_metadata_server.py +++ b/mavsdk/component_metadata_server.py @@ -58,7 +58,7 @@ class Metadata: type : MetadataType The metadata type - json_metadata : std::string + json_metadata : str The JSON metadata """ diff --git a/mavsdk/core.py b/mavsdk/core.py index 30eae606..34a2daf0 100644 --- a/mavsdk/core.py +++ b/mavsdk/core.py @@ -94,7 +94,7 @@ async def set_mavlink_timeout(self, timeout_s): Parameters ---------- - timeout_s : double + timeout_s : float Timeout in seconds @@ -152,7 +152,7 @@ async def set_heartbeat_watchdog_timeout(self, timeout_s): Parameters ---------- - timeout_s : double + timeout_s : float Timeout in seconds. 0 disables the watchdog. Minimum 2 when enabled. diff --git a/mavsdk/events.py b/mavsdk/events.py index 430d4e6d..32b98fa5 100644 --- a/mavsdk/events.py +++ b/mavsdk/events.py @@ -95,22 +95,22 @@ class Event: Parameters ---------- - compid : uint32_t + compid : int The source component ID of the event - message : std::string + message : str Short, single-line message - description : std::string + description : str Detailed description (optional, might be multiple lines) log_level : LogLevel Log level of message - event_namespace : std::string + event_namespace : str Namespace, e.g. "px4" - event_name : std::string + event_name : str Event name (unique within the namespace) """ @@ -192,16 +192,16 @@ class HealthAndArmingCheckProblem: Parameters ---------- - message : std::string + message : str Short, single-line message - description : std::string + description : str Detailed description (optional, might be multiple lines) log_level : LogLevel Log level of message - health_component : std::string + health_component : str Associated health component, e.g. "gps" """ @@ -269,7 +269,7 @@ class HealthAndArmingCheckMode: Parameters ---------- - mode_name : std::string + mode_name : str Mode name, e.g. "Position" can_arm_or_run : bool @@ -346,10 +346,10 @@ class HealthComponentReport: Parameters ---------- - name : std::string + name : str Unique component name, e.g. "gps" - label : std::string + label : str Human readable label of the component, e.g. "GPS" or "Accelerometer" is_present : bool @@ -525,7 +525,7 @@ class EventsResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ diff --git a/mavsdk/failure.py b/mavsdk/failure.py index c4301bb0..5991ca17 100644 --- a/mavsdk/failure.py +++ b/mavsdk/failure.py @@ -301,7 +301,7 @@ class FailureResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -471,7 +471,7 @@ async def inject(self, failure_unit, failure_type, instance): failure_type : FailureType The failure type to send - instance : int32_t + instance : int Instance to affect (0 for all) Raises diff --git a/mavsdk/follow_me.py b/mavsdk/follow_me.py index c89cf5df..82e26103 100644 --- a/mavsdk/follow_me.py +++ b/mavsdk/follow_me.py @@ -157,10 +157,10 @@ class TargetLocation: Parameters ---------- - latitude_deg : double + latitude_deg : float Target latitude in degrees - longitude_deg : double + longitude_deg : float Target longitude in degrees absolute_altitude_m : float @@ -263,7 +263,7 @@ class FollowMeResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ diff --git a/mavsdk/ftp.py b/mavsdk/ftp.py index e90365b5..d0d1a0cc 100644 --- a/mavsdk/ftp.py +++ b/mavsdk/ftp.py @@ -12,16 +12,16 @@ class FilesystemEntry: Parameters ---------- - name : std::string + name : str The name of the file or directory. entry_type : EntryType Whether the entry is a file or a directory. - size_bytes : uint64_t + size_bytes : int The size of the file in bytes (0 for directories). - modification_time_s : uint64_t + modification_time_s : int Last modification time in seconds since UNIX epoch (UTC), 0 if unknown. """ @@ -184,10 +184,10 @@ class ProgressData: Parameters ---------- - bytes_transferred : uint32_t + bytes_transferred : int The number of bytes already transferred. - total_bytes : uint32_t + total_bytes : int The total bytes to transfer. """ @@ -244,7 +244,7 @@ class FtpResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -456,10 +456,10 @@ async def download(self, remote_file_path, local_dir, use_burst): Parameters ---------- - remote_file_path : std::string + remote_file_path : str The path of the remote file to download. - local_dir : std::string + local_dir : str The local directory to download to. use_burst : bool @@ -509,10 +509,10 @@ async def upload(self, local_file_path, remote_dir): Parameters ---------- - local_file_path : std::string + local_file_path : str The local file path to upload. - remote_dir : std::string + remote_dir : str The remote directory to upload to. Yields @@ -556,7 +556,7 @@ async def list_directory(self, remote_dir): Parameters ---------- - remote_dir : std::string + remote_dir : str The remote directory to list the contents for. Returns @@ -589,7 +589,7 @@ async def create_directory(self, remote_dir): Parameters ---------- - remote_dir : std::string + remote_dir : str The remote directory to create. Raises @@ -613,7 +613,7 @@ async def remove_directory(self, remote_dir): Parameters ---------- - remote_dir : std::string + remote_dir : str The remote directory to remove. Raises @@ -637,7 +637,7 @@ async def remove_file(self, remote_file_path): Parameters ---------- - remote_file_path : std::string + remote_file_path : str The path of the remote file to remove. Raises @@ -661,10 +661,10 @@ async def rename(self, remote_from_path, remote_to_path): Parameters ---------- - remote_from_path : std::string + remote_from_path : str The remote source path. - remote_to_path : std::string + remote_to_path : str The remote destination path. Raises @@ -689,10 +689,10 @@ async def are_files_identical(self, local_file_path, remote_file_path): Parameters ---------- - local_file_path : std::string + local_file_path : str The path of the local file. - remote_file_path : std::string + remote_file_path : str The path of the remote file. Returns @@ -729,7 +729,7 @@ async def set_target_compid(self, compid): Parameters ---------- - compid : uint32_t + compid : int The component ID to set. Raises diff --git a/mavsdk/ftp_server.py b/mavsdk/ftp_server.py index b6e8e48b..60695dbe 100644 --- a/mavsdk/ftp_server.py +++ b/mavsdk/ftp_server.py @@ -15,7 +15,7 @@ class FtpServerResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -156,7 +156,7 @@ async def set_root_dir(self, path): Parameters ---------- - path : std::string + path : str Absolute path of folder Raises diff --git a/mavsdk/geofence.py b/mavsdk/geofence.py index 879c40f9..b624a316 100644 --- a/mavsdk/geofence.py +++ b/mavsdk/geofence.py @@ -47,10 +47,10 @@ class Point: Parameters ---------- - latitude_deg : double + latitude_deg : float Latitude in degrees (range: -90 to +90) - longitude_deg : double + longitude_deg : float Longitude in degrees (range: -180 to +180) """ @@ -301,7 +301,7 @@ class GeofenceResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ diff --git a/mavsdk/gimbal.py b/mavsdk/gimbal.py index 17ba0836..8fb4df16 100644 --- a/mavsdk/gimbal.py +++ b/mavsdk/gimbal.py @@ -346,7 +346,7 @@ class Attitude: Parameters ---------- - gimbal_id : int32_t + gimbal_id : int Gimbal ID euler_angle_forward : EulerAngle @@ -364,7 +364,7 @@ class Attitude: angular_velocity : AngularVelocityBody The angular rate - timestamp_us : uint64_t + timestamp_us : int Timestamp in microseconds """ @@ -459,22 +459,22 @@ class GimbalItem: Parameters ---------- - gimbal_id : int32_t + gimbal_id : int ID to address it, starting at 1 (0 means all gimbals) - vendor_name : std::string + vendor_name : str Vendor name - model_name : std::string + model_name : str Model name - custom_name : std::string + custom_name : str Custom name name - gimbal_manager_component_id : int32_t + gimbal_manager_component_id : int MAVLink component of gimbal manager, for debugging purposes - gimbal_device_id : int32_t + gimbal_device_id : int MAVLink component of gimbal device """ @@ -615,22 +615,22 @@ class ControlStatus: Parameters ---------- - gimbal_id : int32_t + gimbal_id : int Gimbal ID control_mode : ControlMode Control mode (none, primary or secondary) - sysid_primary_control : int32_t + sysid_primary_control : int Sysid of the component that has primary control over the gimbal (0 if no one is in control) - compid_primary_control : int32_t + compid_primary_control : int Compid of the component that has primary control over the gimbal (0 if no one is in control) - sysid_secondary_control : int32_t + sysid_secondary_control : int Sysid of the component that has secondary control over the gimbal (0 if no one is in control) - compid_secondary_control : int32_t + compid_secondary_control : int Compid of the component that has secondary control over the gimbal (0 if no one is in control) """ @@ -723,7 +723,7 @@ class GimbalResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -888,7 +888,7 @@ async def set_angles( Parameters ---------- - gimbal_id : int32_t + gimbal_id : int Gimbal id to address (0 for all gimbals) roll_deg : float @@ -958,7 +958,7 @@ async def set_angular_rates( Parameters ---------- - gimbal_id : int32_t + gimbal_id : int Gimbal id to address (0 for all gimbals) roll_rate_deg_s : float @@ -1022,13 +1022,13 @@ async def set_roi_location( Parameters ---------- - gimbal_id : int32_t + gimbal_id : int Gimbal id to address (0 for all gimbals) - latitude_deg : double + latitude_deg : float Latitude in degrees - longitude_deg : double + longitude_deg : float Longitude in degrees altitude_m : float @@ -1073,7 +1073,7 @@ async def take_control(self, gimbal_id, control_mode): Parameters ---------- - gimbal_id : int32_t + gimbal_id : int Gimbal id to address (0 for all gimbals) control_mode : ControlMode @@ -1105,7 +1105,7 @@ async def release_control(self, gimbal_id): Parameters ---------- - gimbal_id : int32_t + gimbal_id : int Gimbal id to address (0 for all gimbals) Raises @@ -1178,7 +1178,7 @@ async def get_control_status(self, gimbal_id): Parameters ---------- - gimbal_id : int32_t + gimbal_id : int Gimbal ID Returns @@ -1234,7 +1234,7 @@ async def get_attitude(self, gimbal_id): Parameters ---------- - gimbal_id : int32_t + gimbal_id : int Gimbal ID Returns diff --git a/mavsdk/gripper.py b/mavsdk/gripper.py index 8c534c59..5a43eb44 100644 --- a/mavsdk/gripper.py +++ b/mavsdk/gripper.py @@ -53,7 +53,7 @@ class GripperResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -209,7 +209,7 @@ async def grab(self, instance): Parameters ---------- - instance : uint32_t + instance : int Raises ------ @@ -232,7 +232,7 @@ async def release(self, instance): Parameters ---------- - instance : uint32_t + instance : int Raises ------ diff --git a/mavsdk/info.py b/mavsdk/info.py index d969e025..ae6dc704 100644 --- a/mavsdk/info.py +++ b/mavsdk/info.py @@ -12,16 +12,16 @@ class FlightInfo: Parameters ---------- - time_boot_ms : uint32_t + time_boot_ms : int Time since system boot - flight_uid : uint64_t + flight_uid : int Flight counter. Starts from zero, is incremented at every disarm and is never reset (even after reboot) - duration_since_arming_ms : uint32_t + duration_since_arming_ms : int Duration since arming in milliseconds - duration_since_takeoff_ms : uint32_t + duration_since_takeoff_ms : int Duration since takeoff in milliseconds """ @@ -100,10 +100,10 @@ class Identification: Parameters ---------- - hardware_uid : std::string + hardware_uid : str UID of the hardware. This refers to uid2 of MAVLink. If the system does not support uid2 yet, this is all zeros. - legacy_uid : uint64_t + legacy_uid : int Legacy UID of the hardware, referred to as uid in MAVLink (formerly exposed during system discovery as UUID). """ @@ -157,16 +157,16 @@ class Product: Parameters ---------- - vendor_id : int32_t + vendor_id : int ID of the board vendor - vendor_name : std::string + vendor_name : str Name of the vendor - product_id : int32_t + product_id : int ID of the product - product_name : std::string + product_name : str Name of the product """ @@ -234,37 +234,37 @@ class Version: Parameters ---------- - flight_sw_major : int32_t + flight_sw_major : int Flight software major version - flight_sw_minor : int32_t + flight_sw_minor : int Flight software minor version - flight_sw_patch : int32_t + flight_sw_patch : int Flight software patch version - flight_sw_vendor_major : int32_t + flight_sw_vendor_major : int Flight software vendor major version - flight_sw_vendor_minor : int32_t + flight_sw_vendor_minor : int Flight software vendor minor version - flight_sw_vendor_patch : int32_t + flight_sw_vendor_patch : int Flight software vendor patch version - os_sw_major : int32_t + os_sw_major : int Operating system software major version - os_sw_minor : int32_t + os_sw_minor : int Operating system software minor version - os_sw_patch : int32_t + os_sw_patch : int Operating system software patch version - flight_sw_git_hash : std::string + flight_sw_git_hash : str Flight software git hash - os_sw_git_hash : std::string + os_sw_git_hash : str Operating system software git hash flight_sw_version_type : FlightSoftwareVersionType @@ -470,7 +470,7 @@ class InfoResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -680,7 +680,7 @@ async def get_speed_factor(self): Returns ------- - speed_factor : double + speed_factor : float Speed factor of simulation Raises diff --git a/mavsdk/log_files.py b/mavsdk/log_files.py index 2ac846a4..d39077b0 100644 --- a/mavsdk/log_files.py +++ b/mavsdk/log_files.py @@ -54,13 +54,13 @@ class Entry: Parameters ---------- - id : uint32_t + id : int ID of the log file, to specify a file to be downloaded - date : std::string + date : str Date of the log file in UTC in ISO 8601 format "yyyy-mm-ddThh:mm:ssZ" - size_bytes : uint32_t + size_bytes : int Size of file in bytes """ @@ -121,7 +121,7 @@ class LogFilesResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -322,7 +322,7 @@ async def download_log_file(self, entry, path): entry : Entry Entry of the log file to download. - path : std::string + path : str Path of where to download log file to. Yields diff --git a/mavsdk/log_streaming.py b/mavsdk/log_streaming.py index 0a97a725..8d1852f3 100644 --- a/mavsdk/log_streaming.py +++ b/mavsdk/log_streaming.py @@ -12,7 +12,7 @@ class LogStreamingRaw: Parameters ---------- - data_base64 : std::string + data_base64 : str Ulog file stream data encoded as base64 """ @@ -57,7 +57,7 @@ class LogStreamingResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ diff --git a/mavsdk/manual_control.py b/mavsdk/manual_control.py index cf03ff6f..0bb02722 100644 --- a/mavsdk/manual_control.py +++ b/mavsdk/manual_control.py @@ -15,7 +15,7 @@ class ManualControlResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ diff --git a/mavsdk/mavlink_direct.py b/mavsdk/mavlink_direct.py index 380ea6d9..a656b754 100644 --- a/mavsdk/mavlink_direct.py +++ b/mavsdk/mavlink_direct.py @@ -12,22 +12,22 @@ class MavlinkMessage: Parameters ---------- - message_name : std::string + message_name : str MAVLink message name (e.g., "HEARTBEAT", "GLOBAL_POSITION_INT") - system_id : uint32_t + system_id : int System ID of the sender (for received messages) - component_id : uint32_t + component_id : int Component ID of the sender (for received messages) - target_system_id : uint32_t + target_system_id : int Target system ID (for sending, 0 for broadcast) - target_component_id : uint32_t + target_component_id : int Target component ID (for sending, 0 for broadcast) - fields_json : std::string + fields_json : str All message fields as single JSON object """ @@ -118,7 +118,7 @@ class MavlinkDirectResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -328,7 +328,7 @@ async def message(self, message_name): Parameters ---------- - message_name : std::string + message_name : str MAVLink message name to filter for (e.g., "HEARTBEAT"), empty string = all messages Yields @@ -358,7 +358,7 @@ async def load_custom_xml(self, xml_content): Parameters ---------- - xml_content : std::string + xml_content : str The custom MAVLink XML definition content Raises diff --git a/mavsdk/mavlink_direct_server.py b/mavsdk/mavlink_direct_server.py index 3562a431..ea57c432 100644 --- a/mavsdk/mavlink_direct_server.py +++ b/mavsdk/mavlink_direct_server.py @@ -12,22 +12,22 @@ class MavlinkMessage: Parameters ---------- - message_name : std::string + message_name : str MAVLink message name (e.g., "HEARTBEAT", "GLOBAL_POSITION_INT") - system_id : uint32_t + system_id : int System ID of the sender (for received messages) - component_id : uint32_t + component_id : int Component ID of the sender (for received messages) - target_system_id : uint32_t + target_system_id : int Target system ID (for sending, 0 for broadcast) - target_component_id : uint32_t + target_component_id : int Target component ID (for sending, 0 for broadcast) - fields_json : std::string + fields_json : str All message fields as single JSON object """ @@ -118,7 +118,7 @@ class MavlinkDirectServerResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -359,7 +359,7 @@ async def message(self, message_name): Parameters ---------- - message_name : std::string + message_name : str MAVLink message name to filter for (e.g., "HEARTBEAT"), empty string = all messages Yields @@ -389,7 +389,7 @@ async def load_custom_xml(self, xml_content): Parameters ---------- - xml_content : std::string + xml_content : str The custom MAVLink XML definition content Raises @@ -427,7 +427,7 @@ async def command(self, command): Parameters ---------- - command : uint32_t + command : int MAV_CMD to subscribe to Yields diff --git a/mavsdk/mission.py b/mavsdk/mission.py index 43597254..a06d27fa 100644 --- a/mavsdk/mission.py +++ b/mavsdk/mission.py @@ -17,10 +17,10 @@ class MissionItem: Parameters ---------- - latitude_deg : double + latitude_deg : float Latitude in degrees (range: -90 to +90) - longitude_deg : double + longitude_deg : float Longitude in degrees (range: -180 to +180) relative_altitude_m : float @@ -44,7 +44,7 @@ class MissionItem: loiter_time_s : float Loiter time (in seconds) - camera_photo_interval_s : double + camera_photo_interval_s : float Camera photo interval to use after this mission item (in seconds) acceptance_radius_m : float @@ -411,10 +411,10 @@ class MissionProgress: Parameters ---------- - current : int32_t + current : int Current mission item index (0-based), if equal to total, the mission is finished - total : int32_t + total : int Total number of mission items """ @@ -466,7 +466,7 @@ class MissionResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -1076,7 +1076,7 @@ async def set_current_mission_item(self, index): Parameters ---------- - index : int32_t + index : int Index of the mission item to be set as the next one (0-based) Raises diff --git a/mavsdk/mission_raw.py b/mavsdk/mission_raw.py index 9b34ac45..a5d74cea 100644 --- a/mavsdk/mission_raw.py +++ b/mavsdk/mission_raw.py @@ -12,19 +12,19 @@ class MissionItem: Parameters ---------- - seq : uint32_t + seq : int Sequence (uint16_t) - frame : uint32_t + frame : int The coordinate system of the waypoint (actually uint8_t) - command : uint32_t + command : int The scheduled action for the waypoint (actually uint16_t) - current : uint32_t + current : int false:0, true:1 (actually uint8_t) - autocontinue : uint32_t + autocontinue : int Autocontinue to next waypoint (actually uint8_t) param1 : float @@ -39,16 +39,16 @@ class MissionItem: param4 : float PARAM4, see MAV_CMD enum - x : int32_t + x : int PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7 - y : int32_t + y : int PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7 z : float PARAM7 / local: Z coordinate, global: altitude (relative or absolute, depending on frame) - mission_type : uint32_t + mission_type : int Mission type (actually uint8_t) """ @@ -238,10 +238,10 @@ class MissionProgress: Parameters ---------- - current : int32_t + current : int Current mission item index (0-based), if equal to total, the mission is finished - total : int32_t + total : int Total number of mission items """ @@ -388,7 +388,7 @@ class MissionRawResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -1075,7 +1075,7 @@ async def set_current_mission_item(self, index): Parameters ---------- - index : int32_t + index : int Index of the mission item to be set as the next one (0-based) Raises @@ -1152,7 +1152,7 @@ async def import_qgroundcontrol_mission(self, qgc_plan_path): Parameters ---------- - qgc_plan_path : std::string + qgc_plan_path : str File path of the QGC plan Returns @@ -1193,7 +1193,7 @@ async def import_qgroundcontrol_mission_from_string(self, qgc_plan): Parameters ---------- - qgc_plan : std::string + qgc_plan : str QGC plan as string Returns @@ -1232,7 +1232,7 @@ async def import_mission_planner_mission(self, mission_planner_path): Parameters ---------- - mission_planner_path : std::string + mission_planner_path : str File path of the Mission Planner mission file Returns @@ -1271,7 +1271,7 @@ async def import_mission_planner_mission_from_string(self, mission_planner_missi Parameters ---------- - mission_planner_mission : std::string + mission_planner_mission : str Mission Planner mission as string Returns diff --git a/mavsdk/mission_raw_server.py b/mavsdk/mission_raw_server.py index dedbbf28..a3c18d28 100644 --- a/mavsdk/mission_raw_server.py +++ b/mavsdk/mission_raw_server.py @@ -12,19 +12,19 @@ class MissionItem: Parameters ---------- - seq : uint32_t + seq : int Sequence (uint16_t) - frame : uint32_t + frame : int The coordinate system of the waypoint (actually uint8_t) - command : uint32_t + command : int The scheduled action for the waypoint (actually uint16_t) - current : uint32_t + current : int false:0, true:1 (actually uint8_t) - autocontinue : uint32_t + autocontinue : int Autocontinue to next waypoint (actually uint8_t) param1 : float @@ -39,16 +39,16 @@ class MissionItem: param4 : float PARAM4, see MAV_CMD enum - x : int32_t + x : int PARAM5 / local: x position in meters * 1e4, global: latitude in degrees * 10^7 - y : int32_t + y : int PARAM6 / y position: local: x position in meters * 1e4, global: longitude in degrees *10^7 z : float PARAM7 / local: Z coordinate, global: altitude (relative or absolute, depending on frame) - mission_type : uint32_t + mission_type : int Mission type (actually uint8_t) """ @@ -238,10 +238,10 @@ class MissionProgress: Parameters ---------- - current : int32_t + current : int Current mission item index (0-based), if equal to total, the mission is finished - total : int32_t + total : int Total number of mission items """ @@ -293,7 +293,7 @@ class MissionRawServerResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -610,7 +610,7 @@ async def clear_all(self): Yields ------- - clear_type : uint32_t + clear_type : int """ diff --git a/mavsdk/mocap.py b/mavsdk/mocap.py index 46244de9..9d25daf4 100644 --- a/mavsdk/mocap.py +++ b/mavsdk/mocap.py @@ -465,7 +465,7 @@ class VisionPositionEstimate: Parameters ---------- - time_usec : uint64_t + time_usec : int PositionBody frame timestamp UNIX Epoch time (0 to use Backend timestamp) position_body : PositionBody @@ -477,7 +477,7 @@ class VisionPositionEstimate: pose_covariance : Covariance Pose cross-covariance matrix. - reset_counter : uint32_t + reset_counter : int Estimate reset counter. Increment when the estimate resets or jumps. """ @@ -553,7 +553,7 @@ class VisionSpeedEstimate: Parameters ---------- - time_usec : uint64_t + time_usec : int Timestamp UNIX Epoch time (0 to use Backend timestamp) speed_ned : SpeedNed @@ -562,7 +562,7 @@ class VisionSpeedEstimate: speed_covariance : Covariance Linear velocity cross-covariance matrix. - reset_counter : uint32_t + reset_counter : int Estimate reset counter. Increment when the estimate resets or jumps. """ @@ -630,7 +630,7 @@ class AttitudePositionMocap: Parameters ---------- - time_usec : uint64_t + time_usec : int PositionBody frame timestamp UNIX Epoch time (0 to use Backend timestamp) q : Quaternion @@ -707,7 +707,7 @@ class Odometry: Parameters ---------- - time_usec : uint64_t + time_usec : int Timestamp (0 to use Backend timestamp). frame_id : MavFrame @@ -731,13 +731,13 @@ class Odometry: velocity_covariance : Covariance Velocity cross-covariance matrix. - reset_counter : uint32_t + reset_counter : int Estimate reset counter. Increment when the estimate resets or jumps. estimator_type : MavEstimatorType Type of estimator that is providing the odometry. - quality_percent : int32_t + quality_percent : int Optional odometry quality in percent. -1 = failed, 0 = unknown/unset, 1 = worst, 100 = best. """ @@ -987,7 +987,7 @@ class MocapResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ diff --git a/mavsdk/modes.py b/mavsdk/modes.py index b911d2bb..196165bb 100644 --- a/mavsdk/modes.py +++ b/mavsdk/modes.py @@ -12,10 +12,10 @@ class Mode: Parameters ---------- - name : std::string + name : str Name of the mode, e.g. "Position" or "Stabilize" - custom_mode : uint32_t + custom_mode : int Autopilot specific custom mode is_standard : bool @@ -118,7 +118,7 @@ class ModesResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -360,7 +360,7 @@ async def set_mode(self, name): Parameters ---------- - name : std::string + name : str Name of the mode to set Raises diff --git a/mavsdk/modes_server.py b/mavsdk/modes_server.py index 8c47dd1e..f39200ef 100644 --- a/mavsdk/modes_server.py +++ b/mavsdk/modes_server.py @@ -71,10 +71,10 @@ class Mode: Parameters ---------- - name : std::string + name : str Name of the mode, for a standard mode one of the standard names, e.g. "Position" or "Mission" - custom_mode : uint32_t + custom_mode : int Autopilot specific custom mode, needs to be unique is_standard : bool @@ -177,7 +177,7 @@ class ModesServerResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -431,7 +431,7 @@ async def set_current_mode(self, name): Parameters ---------- - name : std::string + name : str Name of the mode, one of the available modes Raises diff --git a/mavsdk/offboard.py b/mavsdk/offboard.py index 2230e1f6..9bc14bb2 100644 --- a/mavsdk/offboard.py +++ b/mavsdk/offboard.py @@ -354,10 +354,10 @@ class PositionGlobalYaw: Parameters ---------- - lat_deg : double + lat_deg : float Latitude (in degrees) - lon_deg : double + lon_deg : float Longitude (in degrees) alt_m : float @@ -709,7 +709,7 @@ class OffboardResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ diff --git a/mavsdk/param.py b/mavsdk/param.py index 6cfae8d7..54c102c5 100644 --- a/mavsdk/param.py +++ b/mavsdk/param.py @@ -47,10 +47,10 @@ class IntParam: Parameters ---------- - name : std::string + name : str Name of the parameter - value : int32_t + value : int Value of the parameter """ @@ -97,7 +97,7 @@ class FloatParam: Parameters ---------- - name : std::string + name : str Name of the parameter value : float @@ -147,10 +147,10 @@ class CustomParam: Parameters ---------- - name : std::string + name : str Name of the parameter - value : std::string + value : str Value of the parameter (max len 128 bytes) """ @@ -289,7 +289,7 @@ class ParamResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -527,12 +527,12 @@ async def get_param_int(self, name): Parameters ---------- - name : std::string + name : str Name of the parameter Returns ------- - value : int32_t + value : int Value of the requested parameter Raises @@ -562,10 +562,10 @@ async def set_param_int(self, name, value): Parameters ---------- - name : std::string + name : str Name of the parameter to set - value : int32_t + value : int Value the parameter should be set to Raises @@ -592,7 +592,7 @@ async def get_param_float(self, name): Parameters ---------- - name : std::string + name : str Name of the parameter Returns @@ -627,7 +627,7 @@ async def set_param_float(self, name, value): Parameters ---------- - name : std::string + name : str Name of the parameter to set value : float @@ -657,12 +657,12 @@ async def get_param_custom(self, name): Parameters ---------- - name : std::string + name : str Name of the parameter Returns ------- - value : std::string + value : str Value of the requested parameter Raises @@ -692,10 +692,10 @@ async def set_param_custom(self, name, value): Parameters ---------- - name : std::string + name : str Name of the parameter to set - value : std::string + value : str Value the parameter should be set to Raises @@ -739,7 +739,7 @@ async def select_component(self, component_id, protocol_version): Parameters ---------- - component_id : int32_t + component_id : int MAVLink component Id of component to select protocol_version : ProtocolVersion diff --git a/mavsdk/param_server.py b/mavsdk/param_server.py index 0197bf9a..cb68dea8 100644 --- a/mavsdk/param_server.py +++ b/mavsdk/param_server.py @@ -12,10 +12,10 @@ class IntParam: Parameters ---------- - name : std::string + name : str Name of the parameter - value : int32_t + value : int Value of the parameter """ @@ -62,7 +62,7 @@ class FloatParam: Parameters ---------- - name : std::string + name : str Name of the parameter value : float @@ -112,10 +112,10 @@ class CustomParam: Parameters ---------- - name : std::string + name : str Name of the parameter - value : std::string + value : str Value of the parameter """ @@ -254,7 +254,7 @@ class ParamServerResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -457,12 +457,12 @@ async def retrieve_param_int(self, name): Parameters ---------- - name : std::string + name : str Name of the parameter Returns ------- - value : int32_t + value : int Value of the requested parameter Raises @@ -497,10 +497,10 @@ async def provide_param_int(self, name, value): Parameters ---------- - name : std::string + name : str Name of the parameter to provide - value : int32_t + value : int Value the parameter should be set to Raises @@ -527,7 +527,7 @@ async def retrieve_param_float(self, name): Parameters ---------- - name : std::string + name : str Name of the parameter Returns @@ -567,7 +567,7 @@ async def provide_param_float(self, name, value): Parameters ---------- - name : std::string + name : str Name of the parameter to provide value : float @@ -597,12 +597,12 @@ async def retrieve_param_custom(self, name): Parameters ---------- - name : std::string + name : str Name of the parameter Returns ------- - value : std::string + value : str Value of the requested parameter Raises @@ -637,10 +637,10 @@ async def provide_param_custom(self, name, value): Parameters ---------- - name : std::string + name : str Name of the parameter to provide - value : std::string + value : str Value the parameter should be set to Raises diff --git a/mavsdk/rtk.py b/mavsdk/rtk.py index fa8b31e4..63918623 100644 --- a/mavsdk/rtk.py +++ b/mavsdk/rtk.py @@ -12,7 +12,7 @@ class RtcmData: Parameters ---------- - data_base64 : std::string + data_base64 : str The data encoded as a base64 string """ @@ -57,7 +57,7 @@ class RtkResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ diff --git a/mavsdk/server_utility.py b/mavsdk/server_utility.py index e1d57741..2f47d884 100644 --- a/mavsdk/server_utility.py +++ b/mavsdk/server_utility.py @@ -98,7 +98,7 @@ class ServerUtilityResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -252,7 +252,7 @@ async def send_status_text(self, type, text): type : StatusTextType The text to send - text : std::string + text : str Text message Raises diff --git a/mavsdk/shell.py b/mavsdk/shell.py index 08d665c5..38f849e3 100644 --- a/mavsdk/shell.py +++ b/mavsdk/shell.py @@ -151,7 +151,7 @@ class Receive: Parameters ---------- - data : std::string + data : str Received data. device : Device @@ -204,7 +204,7 @@ class ShellResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -365,7 +365,7 @@ async def send(self, command, device): Parameters ---------- - command : std::string + command : str The command line to send device : Device diff --git a/mavsdk/telemetry.py b/mavsdk/telemetry.py index b4ab888e..2dd36abc 100644 --- a/mavsdk/telemetry.py +++ b/mavsdk/telemetry.py @@ -489,10 +489,10 @@ class Position: Parameters ---------- - latitude_deg : double + latitude_deg : float Latitude in degrees (range: -90 to +90) - longitude_deg : double + longitude_deg : float Longitude in degrees (range: -180 to +180) absolute_altitude_m : float @@ -568,7 +568,7 @@ class Heading: Parameters ---------- - heading_deg : double + heading_deg : float Heading in degrees (range: 0 to +360) """ @@ -629,7 +629,7 @@ class Quaternion: z : float Quaternion entry 3, also denoted as d - timestamp_us : uint64_t + timestamp_us : int Timestamp in microseconds """ @@ -706,13 +706,13 @@ class HomePosition: Parameters ---------- - timestamp_us : uint64_t + timestamp_us : int Timestamp (UNIX Epoch or since system boot) in microseconds - latitude_deg : double + latitude_deg : float Latitude in degrees (range: -90 to +90) - longitude_deg : double + longitude_deg : float Longitude in degrees (range: -180 to +180) absolute_altitude_m : float @@ -883,7 +883,7 @@ class EulerAngle: yaw_deg : float Yaw angle in degrees, positive is clock-wise seen from above - timestamp_us : uint64_t + timestamp_us : int Timestamp in microseconds """ @@ -1019,7 +1019,7 @@ class GpsInfo: Parameters ---------- - num_satellites : int32_t + num_satellites : int Number of visible satellites in use fix_type : FixType @@ -1079,13 +1079,13 @@ class RawGps: Parameters ---------- - timestamp_us : uint64_t + timestamp_us : int Timestamp in microseconds (UNIX Epoch time or time since system boot, to be inferred) - latitude_deg : double + latitude_deg : float Latitude in degrees (WGS84, EGM96 ellipsoid) - longitude_deg : double + longitude_deg : float Longitude in degrees (WGS84, EGM96 ellipsoid) absolute_altitude_m : float @@ -1266,7 +1266,7 @@ class Battery: Parameters ---------- - id : uint32_t + id : int Battery ID, for systems with multiple batteries temperature_degc : float @@ -1584,7 +1584,7 @@ class StatusText: type : StatusTextType Message type - text : std::string + text : str MAVLink status message """ @@ -1631,7 +1631,7 @@ class ActuatorControlTarget: Parameters ---------- - group : int32_t + group : int An actuator control group is e.g. 'attitude' for the core flight controls, or 'gimbal' for a payload. controls : [float] @@ -1686,7 +1686,7 @@ class ActuatorOutputStatus: Parameters ---------- - active : uint32_t + active : int Active outputs actuator : [float] @@ -1916,7 +1916,7 @@ class Odometry: Parameters ---------- - time_usec : uint64_t + time_usec : int Timestamp (0 to use Backend timestamp). frame_id : MavFrame @@ -2178,7 +2178,7 @@ class ScaledPressure: Parameters ---------- - timestamp_us : uint64_t + timestamp_us : int Timestamp (time since system boot) absolute_pressure_hpa : float @@ -2469,16 +2469,16 @@ class GroundTruth: Parameters ---------- - latitude_deg : double + latitude_deg : float Latitude in degrees (range: -90 to +90) - longitude_deg : double + longitude_deg : float Longitude in degrees (range: -180 to 180) absolute_altitude_m : float Altitude AMSL (above mean sea level) in metres - timestamp_us : uint64_t + timestamp_us : int Timestamp in microseconds (since system boot) """ @@ -2865,7 +2865,7 @@ class Imu: temperature_degc : float Temperature - timestamp_us : uint64_t + timestamp_us : int Timestamp in microseconds """ @@ -2946,10 +2946,10 @@ class GpsGlobalOrigin: Parameters ---------- - latitude_deg : double + latitude_deg : float Latitude of the origin - longitude_deg : double + longitude_deg : float Longitude of the origin altitude_m : float @@ -3032,7 +3032,7 @@ class Altitude: bottom_clearance_m : float This is not the altitude, but the clear space below the system according to the fused clearance estimate in meters. - timestamp_us : uint64_t + timestamp_us : int Timestamp in microseconds (since system boot) """ @@ -3273,7 +3273,7 @@ class TelemetryResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -4020,7 +4020,7 @@ async def unix_epoch_time(self): Yields ------- - time_us : uint64_t + time_us : int The next 'unix epoch time' status @@ -4146,7 +4146,7 @@ async def set_rate_position(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4170,7 +4170,7 @@ async def set_rate_home(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4194,7 +4194,7 @@ async def set_rate_in_air(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4218,7 +4218,7 @@ async def set_rate_landed_state(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4242,7 +4242,7 @@ async def set_rate_vtol_state(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4266,7 +4266,7 @@ async def set_rate_attitude_quaternion(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4290,7 +4290,7 @@ async def set_rate_attitude_euler(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4315,7 +4315,7 @@ async def set_rate_velocity_ned(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4339,7 +4339,7 @@ async def set_rate_gps_info(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4363,7 +4363,7 @@ async def set_rate_raw_gps(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4387,7 +4387,7 @@ async def set_rate_battery(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4411,7 +4411,7 @@ async def set_rate_rc_status(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4435,7 +4435,7 @@ async def set_rate_actuator_control_target(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4459,7 +4459,7 @@ async def set_rate_actuator_output_status(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4483,7 +4483,7 @@ async def set_rate_odometry(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4507,7 +4507,7 @@ async def set_rate_position_velocity_ned(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4531,7 +4531,7 @@ async def set_rate_ground_truth(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4555,7 +4555,7 @@ async def set_rate_fixedwing_metrics(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4579,7 +4579,7 @@ async def set_rate_imu(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4603,7 +4603,7 @@ async def set_rate_scaled_imu(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4627,7 +4627,7 @@ async def set_rate_raw_imu(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4651,7 +4651,7 @@ async def set_rate_unix_epoch_time(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4675,7 +4675,7 @@ async def set_rate_distance_sensor(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4699,7 +4699,7 @@ async def set_rate_altitude(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises @@ -4723,7 +4723,7 @@ async def set_rate_health(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises diff --git a/mavsdk/telemetry_server.py b/mavsdk/telemetry_server.py index 4e1e5670..b0f8a76c 100644 --- a/mavsdk/telemetry_server.py +++ b/mavsdk/telemetry_server.py @@ -288,10 +288,10 @@ class Position: Parameters ---------- - latitude_deg : double + latitude_deg : float Latitude in degrees (range: -90 to +90) - longitude_deg : double + longitude_deg : float Longitude in degrees (range: -180 to +180) absolute_altitude_m : float @@ -367,7 +367,7 @@ class Heading: Parameters ---------- - heading_deg : double + heading_deg : float Heading in degrees (range: 0 to +360) """ @@ -428,7 +428,7 @@ class Quaternion: z : float Quaternion entry 3, also denoted as d - timestamp_us : uint64_t + timestamp_us : int Timestamp in microseconds """ @@ -516,7 +516,7 @@ class EulerAngle: yaw_deg : float Yaw angle in degrees, positive is clock-wise seen from above - timestamp_us : uint64_t + timestamp_us : int Timestamp in microseconds """ @@ -652,7 +652,7 @@ class GpsInfo: Parameters ---------- - num_satellites : int32_t + num_satellites : int Number of visible satellites in use fix_type : FixType @@ -712,13 +712,13 @@ class RawGps: Parameters ---------- - timestamp_us : uint64_t + timestamp_us : int Timestamp in microseconds (UNIX Epoch time or time since system boot, to be inferred) - latitude_deg : double + latitude_deg : float Latitude in degrees (WGS84, EGM96 ellipsoid) - longitude_deg : double + longitude_deg : float Longitude in degrees (WGS84, EGM96 ellipsoid) absolute_altitude_m : float @@ -1025,7 +1025,7 @@ class StatusText: type : StatusTextType Message type - text : std::string + text : str MAVLink status message """ @@ -1072,7 +1072,7 @@ class ActuatorControlTarget: Parameters ---------- - group : int32_t + group : int An actuator control group is e.g. 'attitude' for the core flight controls, or 'gimbal' for a payload. controls : [float] @@ -1127,7 +1127,7 @@ class ActuatorOutputStatus: Parameters ---------- - active : uint32_t + active : int Active outputs actuator : [float] @@ -1357,7 +1357,7 @@ class Odometry: Parameters ---------- - time_usec : uint64_t + time_usec : int Timestamp (0 to use Backend timestamp). frame_id : MavFrame @@ -1608,7 +1608,7 @@ class ScaledPressure: Parameters ---------- - timestamp_us : uint64_t + timestamp_us : int Timestamp (time since system boot) absolute_pressure_hpa : float @@ -1899,16 +1899,16 @@ class GroundTruth: Parameters ---------- - latitude_deg : double + latitude_deg : float Latitude in degrees (range: -90 to +90) - longitude_deg : double + longitude_deg : float Longitude in degrees (range: -180 to 180) absolute_altitude_m : float Altitude AMSL (above mean sea level) in metres - timestamp_us : uint64_t + timestamp_us : int Timestamp in microseconds (since system boot) """ @@ -2295,7 +2295,7 @@ class Imu: temperature_degc : float Temperature - timestamp_us : uint64_t + timestamp_us : int Timestamp in microseconds """ @@ -2379,7 +2379,7 @@ class TelemetryServerResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -2966,7 +2966,7 @@ async def publish_unix_epoch_time(self, time_us): Parameters ---------- - time_us : uint64_t + time_us : int The next 'unix epoch time' status Raises diff --git a/mavsdk/transponder.py b/mavsdk/transponder.py index 219ab398..1294213c 100644 --- a/mavsdk/transponder.py +++ b/mavsdk/transponder.py @@ -226,13 +226,13 @@ class AdsbVehicle: Parameters ---------- - icao_address : uint32_t + icao_address : int ICAO (International Civil Aviation Organization) unique worldwide identifier - latitude_deg : double + latitude_deg : float Latitude in degrees (range: -90 to +90) - longitude_deg : double + longitude_deg : float Longitude in degrees (range: -180 to +180). altitude_type : AdsbAltitudeType @@ -250,16 +250,16 @@ class AdsbVehicle: vertical_velocity_m_s : float The vertical velocity in metres/second. Positive is up. - callsign : std::string + callsign : str The callsign emitter_type : AdsbEmitterType ADSB emitter type. - squawk : uint32_t + squawk : int Squawk code. - tslc_s : uint32_t + tslc_s : int Time Since Last Communication in seconds. """ @@ -392,7 +392,7 @@ class TransponderResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -576,7 +576,7 @@ async def set_rate_transponder(self, rate_hz): Parameters ---------- - rate_hz : double + rate_hz : float The requested rate (in Hertz) Raises diff --git a/mavsdk/tune.py b/mavsdk/tune.py index d7372bdc..21aa44bf 100644 --- a/mavsdk/tune.py +++ b/mavsdk/tune.py @@ -202,7 +202,7 @@ class TuneDescription: song_elements : [SongElement] The list of song elements (notes, pauses, ...) to be played - tempo : int32_t + tempo : int The tempo of the song (range: 32 - 255) """ @@ -262,7 +262,7 @@ class TuneResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ diff --git a/mavsdk/winch.py b/mavsdk/winch.py index b4414cf5..aa805e26 100644 --- a/mavsdk/winch.py +++ b/mavsdk/winch.py @@ -300,7 +300,7 @@ class Status: Parameters ---------- - time_usec : uint64_t + time_usec : int Time in usec line_length_m : float @@ -318,7 +318,7 @@ class Status: current_a : float Current in amperes - temperature_c : int32_t + temperature_c : int Temperature in Celsius status_flags : StatusFlags @@ -426,7 +426,7 @@ class WinchResult: result : Result Result enum value - result_str : std::string + result_str : str Human-readable English string describing the result """ @@ -603,7 +603,7 @@ async def relax(self, instance): Parameters ---------- - instance : uint32_t + instance : int Raises ------ @@ -626,7 +626,7 @@ async def relative_length_control(self, instance, length_m, rate_m_s): Parameters ---------- - instance : uint32_t + instance : int Instance ID of the winch addressed by this request length_m : float @@ -660,7 +660,7 @@ async def rate_control(self, instance, rate_m_s): Parameters ---------- - instance : uint32_t + instance : int rate_m_s : float Rate at which to wind or unwind the line @@ -687,7 +687,7 @@ async def lock(self, instance): Parameters ---------- - instance : uint32_t + instance : int Raises ------ @@ -710,7 +710,7 @@ async def deliver(self, instance): Parameters ---------- - instance : uint32_t + instance : int Raises ------ @@ -733,7 +733,7 @@ async def hold(self, instance): Parameters ---------- - instance : uint32_t + instance : int Raises ------ @@ -756,7 +756,7 @@ async def retract(self, instance): Parameters ---------- - instance : uint32_t + instance : int Raises ------ @@ -781,7 +781,7 @@ async def load_line(self, instance): Parameters ---------- - instance : uint32_t + instance : int Raises ------ @@ -804,7 +804,7 @@ async def abandon_line(self, instance): Parameters ---------- - instance : uint32_t + instance : int Raises ------ @@ -827,7 +827,7 @@ async def load_payload(self, instance): Parameters ---------- - instance : uint32_t + instance : int Raises ------ diff --git a/other/templates/py/type_conversions b/other/templates/py/type_conversions index 6cb86a3e..89004093 100644 --- a/other/templates/py/type_conversions +++ b/other/templates/py/type_conversions @@ -1,3 +1,12 @@ { + "double": "float", + "float": "float", + "int64_t": "int", + "uint64_t": "int", + "int32_t": "int", + "uint32_t": "int", + "bool": "bool", + "std::string": "str", + "std::byte": "bytes", "repeated": { "prefix": "[", "suffix": "]" } }