# Check Drone Flight Logs for Lost Radio Signal (.ulg and .tlog) (`recoupiq/drone-bvlos-c2-flight-log-auditor`) Actor

Reads PX4 and MAVLink drone flight logs to report radio signal drops, drop length, and return-home triggers.

- **URL**: https://apify.com/recoupiq/drone-bvlos-c2-flight-log-auditor.md
- **Developed by:** [Recoup-IQ](https://apify.com/recoupiq) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.50 / bvlos c2 flight-log audit certificate

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Check Drone Flight Logs for Lost Radio Signal (`.ulg` and `.tlog`)

This tool reads drone flight logs and writes a clear radio link report. The report uses metric names found in UK CAA `CAP 3154` and `CAP 3248`, JARUS and GUTMA documents. It is not a CAA-approved format. `CAP 3248` is a CAA consultation response, not a rule.

### What This Tool Measures

1. Percent of flight time with a working radio link.
2. Number of radio link drops and their shortest, middle, and longest times.
3. Command round-trip speed, lost packet rate, and return-to-home safety triggers.
4. Continuity against your chosen time limit (`transaction_time_s`) using JARUS and GUTMA metric names.

### Supported Flight Log Files

- **PX4 ULog (`.ulg` or `.ulog`):** Onboard autopilot flight log.
- **MAVLink Ground Log (`.tlog`):** QGroundControl or Mission Planner ground log.
- **File note:** This tool does not read ArduPilot `.bin` files. Upload the ground `.tlog` file from that flight instead.

### How to Run It

1. Click **Start** with blank inputs to test a sample 2-minute synthetic flight with a 13-second link drop. This demo run is free.
2. If you want to check your own flight, paste a direct file link into `log_url`. A run on your own log costs one event.
3. Open `C2_REPORT.md` in Key-Value Store or read the JSON summary in `OUTPUT`. The field `charged` tells you if the run was charged.

### Plain Limits to Know First

- This report is a flight-log record. It is not proof of radio link performance or of UK CAA compliance.
- Autopilot logs alone do not show unseen bit errors inside accepted radio packets.
- This tool gives analytical support only.
- A qualified flight manager must check every report before sending it to an aviation regulator.

### Onboard Drone Link and Contact

- **Maker:** RecoupIQ Ltd (Company No. `16947526`, 410 High Street, Flat 1, Lincoln, LN5 7TE, United Kingdom)
- **Onboard Quiet Drone Link (£1,450 per year):** https://recoupiq.github.io/bytesdk/
- **Email:** contact@recoup-iq.tech

# Actor input Schema

## `log_url` (type: `string`):

Direct web link to a PX4 (.ulg) or MAVLink ground (.tlog) log. Leave blank to test our built-in 2-minute sample flight.

## `filename` (type: `string`):

File name ending in .ulg or .tlog.

## `transaction_time_s` (type: `number`):

Your allowed radio link time limit in seconds for continuity checks.

## `log_base64` (type: `string`):

Optional Base64 file text when calling via API without a web link.

## Actor input object example

```json
{
  "filename": "demo_bvlos_flight.tlog",
  "transaction_time_s": 5
}
```

# Actor output Schema

## `dataset_items` (type: `string`):

No description

## `c2_report_md` (type: `string`):

No description

## `summary_json` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "filename": "demo_bvlos_flight.tlog",
    "transaction_time_s": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("recoupiq/drone-bvlos-c2-flight-log-auditor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "filename": "demo_bvlos_flight.tlog",
    "transaction_time_s": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("recoupiq/drone-bvlos-c2-flight-log-auditor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "filename": "demo_bvlos_flight.tlog",
  "transaction_time_s": 5
}' |
apify call recoupiq/drone-bvlos-c2-flight-log-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,recoupiq/drone-bvlos-c2-flight-log-auditor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/lVajGh4AKPqKKRZrl/builds/HYb7escNipNxepGND/openapi.json
