MCPcopy Create free account

hub / github.com/alireza787b/PixEagle / functions

Functions4,545 in github.com/alireza787b/PixEagle

↓ 1,176 callersMethodget
Get a named color from the current palette.
src/classes/osd_colors.py:103
↓ 619 callersMethodinfo
(self, msg)
tools/test_dlib_tracker.py:106
↓ 608 callersMethoderror
(self, msg)
tools/test_dlib_tracker.py:108
↓ 400 callersMethoddebug
(self, msg)
tools/test_dlib_tracker.py:109
↓ 308 callersMethodwarning
(self, msg)
tools/test_dlib_tracker.py:107
↓ 104 callersMethodget
Get capture property. Args: prop_id: OpenCV property ID Returns: Property value
tests/fixtures/mock_video.py:126
↓ 104 callersMethodset_command_field
Sets a command field value with validation and error handling. Args: field_name (str): The name of the field to set.
src/classes/followers/base_follower.py:337
↓ 82 callersMethodget_param
Get an effective parameter value with caching. Args: param_name: Parameter name (e.g., 'CONTROL_UPDATE_RATE')
src/classes/follower_config_manager.py:194
↓ 76 callersMethodupdate_telemetry_metadata
Updates telemetry metadata with custom information. Args: key (str): Metadata key to update. value (
src/classes/followers/base_follower.py:810
↓ 68 callersMethodload_from_config
Load safety configuration from parsed YAML config. Architecture (v5.0.0+): - Single Source of Truth: Safety.GlobalLimits
src/classes/safety_manager.py:105
↓ 61 callersFunctioncreate_mock_test_frame
Create a mock test frame. Args: width: Frame width height: Frame height channels: Number of color channels Retu
tests/fixtures/mock_opencv.py:358
↓ 57 callersMethodclear
Clear all stored appearance data.
src/classes/appearance_model.py:471
↓ 55 callersFunctioncreate_test_tracker
Create a ConcreteTracker with mock dependencies.
tests/unit/trackers/test_base_tracker.py:132
↓ 41 callersMethodjson
Return JSON data.
tests/fixtures/mock_mavlink2rest.py:527
↓ 40 callersFunctioncreate_mock_bbox
Create a mock bounding box. Args: center: (cx, cy) center coordinates size: (width, height) dimensions Returns:
tests/fixtures/mock_opencv.py:377
↓ 37 callersMethodupdate
Update motion history with new detection. Args: bbox: Bounding box (x1, y1, x2, y2) timestamp: Detection tim
src/classes/motion_predictor.py:66
↓ 33 callersMethodget_limit
Get an effective limit value with caching. Args: limit_name: Name of the limit (e.g., 'MAX_VELOCITY_FORWARD')
src/classes/safety_manager.py:178
↓ 33 callersMethodisOpened
Check if writer is open.
tests/fixtures/mock_video.py:259
↓ 31 callersMethodstart
Start offboard mode.
tests/fixtures/mock_mavsdk.py:139
↓ 28 callersMethod_get_config_service
Get ConfigService singleton instance.
src/classes/fastapi_handler.py:4751
↓ 27 callersMethodget_instance
Singleton access.
tests/fixtures/mock_safety.py:65
↓ 27 callersMethodset_velocity_body
Set body-frame velocity setpoint.
tests/fixtures/mock_mavsdk.py:152
↓ 26 callersMethodcenter
Get center point.
tests/fixtures/mock_dlib.py:55
↓ 26 callersMethodget_fields
Returns the current fields of the setpoint. Returns: Dict[str, float]: The current fields of the setpoint.
src/classes/setpoint_handler.py:256
↓ 26 callersMethodreceive_json
Receive JSON message from client. Returns: Dictionary from client
tests/fixtures/mock_streaming.py:128
↓ 25 callersFunctioncreate_mock_kalman_filter
Create a mock Kalman filter.
tests/unit/trackers/test_kcf_kalman_tracker.py:25
↓ 23 callersMethodset
Set capture property. Args: prop_id: OpenCV property ID value: Property value Returns:
tests/fixtures/mock_video.py:149
↓ 21 callersMethodclose
Close WebSocket connection. Args: code: Close status code reason: Close reason string
tests/fixtures/mock_streaming.py:68
↓ 21 callersMethodget_config
Get current configuration. Args: section: Optional section name Returns: Full config or section con
src/classes/config_service.py:339
↓ 21 callersMethodset_velocity_ned
Set NED-frame velocity setpoint.
tests/fixtures/mock_mavsdk.py:184
↓ 20 callersMethodapply
Apply full smoothing pipeline to yaw rate command. Args: raw_yaw_rate: Raw PID output (deg/s) dt: Time delta
src/classes/followers/yaw_rate_smoother.py:60
↓ 20 callersFunctioncreate_tracker
Factory function to create tracker instances based on the specified algorithm. Args: algorithm (str): The name of the tracking algor
src/classes/trackers/tracker_factory.py:61
↓ 19 callersMethodaccept
(self)
tests/unit/streaming/test_websocket_streaming.py:42
↓ 19 callersMethodget_control_type
Determines the type of control command to send based on the current follower mode. Returns: str: The control typ
src/classes/follower.py:338
↓ 19 callersMethodis_active
True if recording or paused (session in progress).
src/classes/recording_manager.py:534
↓ 19 callersMethodlog_follower_event
Log follower events for debugging and testing. When circuit breaker is active, this provides visibility into follower behavi
src/classes/followers/base_follower.py:826
↓ 19 callersMethodset_field
Sets the value of a specific field with validation and clamping if enabled. If the value is out of range and 'clamp' is true in the c
src/classes/setpoint_handler.py:156
↓ 19 callersMethodstart_tracking
Start background monitoring for gimbal data. Note: This does NOT start gimbal tracking. It only starts background monitoring
src/classes/trackers/gimbal_tracker.py:210
↓ 18 callersMethod_initialize_registry
Initializes the follower registry with available implementations. Uses lazy loading to avoid circular imports. Naming Conven
src/classes/follower.py:40
↓ 18 callersMethodadd_element
(self, element: OSDElement)
tests/unit/osd/test_osd_renderer.py:109
↓ 18 callersMethodlog_connection_status
Log connection status with spam reduction. Args: logger: Logger instance service_name: Name of the s
src/classes/logging_manager.py:60
↓ 18 callersMethodpause
Pause recording. Frames are silently dropped while paused.
src/classes/recording_manager.py:293
↓ 18 callersMethodreload_config
Reload configuration from disk (thread-safe). This method reloads the configuration file and updates all class attributes. I
src/classes/parameters.py:277
↓ 18 callersMethodset_field
Set a field value.
tests/fixtures/mock_drone_interface.py:393
↓ 17 callersFunctioncreate_phase3_tracker
Create a tracker with Phase 3 attributes and bound BaseTracker methods.
tests/unit/trackers/test_base_tracker.py:778
↓ 17 callersMethodget_frame
Get current frame.
tests/integration/video/test_video_streaming_integration.py:66
↓ 17 callersMethodget_frame
Get current frame. Returns: Frame as numpy array or None on failure
tests/fixtures/mock_video.py:344
↓ 17 callersMethodread
Read frame from capture. Returns: Tuple of (success, frame) where frame is BGR numpy array
tests/fixtures/mock_video.py:67
↓ 16 callersMethodencode_frame
( self, frame: np.ndarray, quality: Optional[int] = None, client_id: Optional[
tests/unit/streaming/test_streaming_optimizer.py:79
↓ 16 callersMethodrelease
Release video capture resources.
src/classes/video_handler.py:1301
↓ 16 callersMethodreset
Reset internal state (call when tracking starts/stops).
src/classes/followers/yaw_rate_smoother.py:128
↓ 16 callersMethodstart
Start the FastAPI server.
src/classes/fastapi_handler.py:1428
↓ 16 callersMethodupdate_tracking
Update tracking state with new detections. Args: detections: List of YOLO detections [x1, y1, x2, y2, track_id, conf, cl
src/classes/tracking_state_manager.py:204
↓ 15 callersMethodget_anchor_position
(self, anchor: str)
tests/unit/osd/test_osd_layout_manager.py:82
↓ 15 callersMethodstart_tracking
(self, frame: np.ndarray, bbox: Tuple[int, int, int, int])
src/classes/trackers/kcf_kalman_tracker.py:98
↓ 15 callersMethodtransform_angles_to_velocity
Transform gimbal angles to drone velocity commands. Args: gimbal_angles: Validated gimbal angle data Returns:
src/classes/gimbal_transforms.py:407
↓ 14 callersMethodconnect
(self, websocket: MockWebSocket)
tests/unit/streaming/test_websocket_streaming.py:99
↓ 14 callersMethodget_effective_limit
Get the effective safety limit for a given parameter. Resolution order (v5.0.0+ via SafetyManager): 1. Safety.FollowerOverri
src/classes/parameters.py:196
↓ 14 callersMethodupdate
Update tracker by checking gimbal status and providing data when available. Modified to always return angle data when available, reg
src/classes/trackers/gimbal_tracker.py:273
↓ 13 callersMethod_get_path
Get absolute path from relative path.
src/classes/config_service.py:151
↓ 13 callersFunction_make_base_follower_stub
Create a minimal MCVelocityChaseFollower instance for set_command_field testing. Uses __new__ to bypass __init__ (which requires a live PX4
tests/unit/followers/test_nan_inf_guard.py:40
↓ 13 callersMethodadd_client
Add client to pipeline.
tests/integration/video/test_video_streaming_integration.py:112
↓ 13 callersMethodcheck_storage
Check disk space on the recording output directory. Returns: Dict with free_bytes, free_mb, free_gb, total_bytes, total_
src/classes/storage_manager.py:75
↓ 13 callersMethodget_yaw_smoothing_config
Get merged YAW_SMOOTHING config for a follower. Merges: fallback ← General.YAW_SMOOTHING ← FollowerOverrides.{follower}.YAW_SMOOTHIN
src/classes/follower_config_manager.py:213
↓ 13 callersMethodlog_operation
Log follower operation with automatic throttling. Args: operation: Operation name (e.g., "follow_target", "calculate_con
src/classes/follower_logger.py:74
↓ 13 callersMethodlog_rate_limited
Log message only if interval has passed since last log with same key. Args: logger_instance: Logger instance to use for
src/classes/followers/base_follower.py:93
↓ 13 callersMethodsend_json
Send JSON message. Args: data: Dictionary to send as JSON
tests/fixtures/mock_streaming.py:80
↓ 13 callersMethodset_center
(self, value: Tuple[int, int])
src/classes/trackers/base_tracker.py:509
↓ 13 callersMethodstart_tracking
(self, frame: np.ndarray, bbox: Tuple[int, int, int, int])
src/classes/trackers/csrt_tracker.py:155
↓ 13 callersMethodstart_tracking
(self, frame, bbox)
tests/unit/core_app/test_smart_click.py:31
↓ 12 callersMethod_get_pid_gains
Retrieves PID gains for the specified control axis. Args: axis (str): Control axis name (mc_pitchspeed_deg_s, mc_att_yaw
src/classes/followers/mc_attitude_rate_follower.py:312
↓ 12 callersMethod_to_list
Convert torch/numpy-like object to a Python list safely.
src/classes/backends/ultralytics_backend.py:501
↓ 12 callersMethod_update_out_of_frame_status
Update OOF state based on current bbox and frame dimensions.
src/classes/trackers/base_tracker.py:423
↓ 12 callersFunctioncreate_mock_websocket
Create mock WebSocket.
tests/unit/streaming/test_websocket_streaming.py:70
↓ 12 callersFunctionextract_unit
Extract unit from description if present. Pattern 1: trailing parenthetical e.g. (m/s), (degrees) — validated to look like a real unit. Patte
scripts/generate_schema.py:380
↓ 12 callersMethodget_diff
Get differences between two configs. Args: config1: First config config2: Second config Returns:
src/classes/config_service.py:905
↓ 12 callersFunctionget_follower_config_manager
Get the FollowerConfigManager singleton instance.
src/classes/follower_config_manager.py:363
↓ 12 callersMethodget_follower_data
Get the latest follower telemetry data using the enhanced unified interface. Returns: dict: The follower telemet
src/classes/telemetry_handler.py:187
↓ 12 callersMethodget_sections
Get list of all sections with metadata.
src/classes/config_service.py:317
↓ 12 callersMethodrecord_error
Record an error occurrence. Args: error_key (str): Unique identifier for this error type logger_instance: Op
src/classes/followers/base_follower.py:133
↓ 12 callersMethodreset_command_fields
Resets all command fields to their schema-defined default values. Returns: bool: True if successful, False other
src/classes/followers/base_follower.py:399
↓ 12 callersMethodreset_instance
Reset singleton for test isolation.
tests/fixtures/mock_safety.py:72
↓ 12 callersMethodset_parameter
Set a parameter value (in memory only, call save_config to persist). Args: section: Section name param: Para
src/classes/config_service.py:481
↓ 12 callersMethodto_dict
(self)
src/classes/config_service.py:74
↓ 12 callersMethodupdate
(self, frame: np.ndarray)
src/classes/trackers/csrt_tracker.py:175
↓ 12 callersMethodvalidate_value
Validate a value against its schema. Args: section: Section name param: Parameter name value: Va
src/classes/config_service.py:385
↓ 11 callersMethod_build_failure_info
Build structured failure info and store in self.last_failure_info.
src/classes/trackers/base_tracker.py:441
↓ 11 callersFunction_load_yaml
(path: Path)
tests/unit/followers/test_config_consistency.py:31
↓ 11 callersMethod_record_loss_start
Snapshot confidence when failure sequence begins.
src/classes/trackers/base_tracker.py:459
↓ 11 callersMethod_resolve_color
Resolve color: prefer color_role via OSDColorSystem, fallback to config color. Elements specify ``color_role: "primary"`` (or critical/warnin
src/classes/osd_renderer.py:721
↓ 11 callersMethodbroadcast_frame
Broadcast frame to all clients.
tests/integration/video/test_video_streaming_integration.py:121
↓ 11 callersFunctioncreate_gimbal_transformer
Factory function to create gimbal transformation engine. Args: config: Configuration dictionary (typically from Parameters.GIMBAL_FO
src/classes/gimbal_transforms.py:605
↓ 11 callersMethodextract_target_coordinates
Extracts 2D target coordinates from tracker data for backwards compatibility. Args: tracker_data (TrackerOutput)
src/classes/followers/base_follower.py:1033
↓ 11 callersMethodget_display_name
Returns the human-readable display name for the current follower mode. Returns: str: The display name.
src/classes/follower.py:351
↓ 11 callersMethodget_parameter
Get a specific parameter value.
src/classes/config_service.py:367
↓ 11 callersMethodget_schema
Get schema configuration for a specific data type. Args: schema_type (str): The schema type name
src/classes/schema_manager.py:112
↓ 11 callersMethodrectangle
Create mock rectangle.
tests/fixtures/mock_dlib.py:277
↓ 11 callersMethodreturn_to_launch
Return to launch.
tests/fixtures/mock_mavsdk.py:419
↓ 11 callersMethodsave_config
Save current config to YAML file with atomic writes and file locking. Uses a safe write pattern: 1. Acquire file lock (if av
src/classes/config_service.py:689
↓ 11 callersMethodstop
Stop offboard mode.
tests/fixtures/mock_mavsdk.py:147
next →1–100 of 4,545, ranked by callers