drone_telemetryTelemetry

Mock Jutsu HOW-TO | EN

The drone_telemetry function within the mock-jutsu library is a specialized generator designed to produce high-fidelity time-series test data for unmanned aerial vehicle (UAV) applications. This function outputs a comprehensive schema including latitude, longitude, altitude in meters, and detailed orientation metrics like pitch, roll, and yaw. By providing realistic speed in meters per second and Received Signal Strength Indicator (RSSI) values, mock-jutsu allows developers to simulate complex flight paths and connectivity environments without needing physical hardware during the early stages of development.

What sets the drone_telemetry generator apart is its adherence to realistic physical constraints and high-frequency sampling rates. The function generates data at a 20 Hz frequency, mirroring the high-speed polling intervals typical of modern flight controllers. A critical feature of this mock data is the monotonically decreasing battery percentage, which ensures that power consumption follows a logical, downward trajectory throughout the simulated session. This algorithmic consistency ensures that the resulting test data remains valid for downstream analytics, state-machine validation, and power-management logic testing.

Engineers can leverage drone_telemetry for a variety of critical testing scenarios, such as stress-testing real-time geospatial dashboards or validating geo-fencing algorithms. Because the data includes precise orientation and velocity vectors, it is ideal for testing automated emergency landing protocols triggered by low battery thresholds or fluctuating RSSI levels. The structured JSON output, featuring a unique drone identifier and an array of granular samples, integrates seamlessly into modern microservices architectures and time-series databases like InfluxDB or Prometheus.

Integrating this function into your workflow is effortless, whether you are using the CLI, the Python API, or the JMeter plugin for performance testing. By executing a simple command or calling the jutsu.generate method, developers can instantly populate their environments with thousands of flight records, significantly reducing the time spent on manual data preparation. The mock-jutsu library empowers software teams to focus on building robust aerial software by providing a reliable, repeatable source of sophisticated drone telemetry that mimics the unpredictability and technical precision of real-world flight conditions.

CLI Usage
mockjutsu generate drone_telemetrymockjutsu bulk drone_telemetry --count 10mockjutsu export drone_telemetry --count 10 --format jsonmockjutsu export drone_telemetry --count 10 --format csvmockjutsu export drone_telemetry --count 10 --format sql
Python API
from mockjutsu import jutsujutsu.generate('drone_telemetry')jutsu.bulk('drone_telemetry', count=10)jutsu.template(['drone_telemetry'], count=5)
JMeter
${__mockjutsu_telemetry(drone_telemetry)}# JMeter Function: __mockjutsu_telemetry# Parameter 1: drone_telemetry# Parameter 2: (not required for this function)
REST API
GET /generate/drone_telemetry# → {"type":"drone_telemetry","result":"...","status":"ok"}GET /bulk/drone_telemetry?count=10POST /template {"types":["drone_telemetry"],"count":1}

Other Languages