Skip to content
arm-fc-physical logo

Arm Fc Physical

arm-fc-physical

Arm physical flight controller via MSP and download blackbox logs

SKILL.md

Full skill instructions

arm-fc-physical

Arm a physical flight controller via MSP and download blackbox logs for analysis


When to Use This Skill

  • Generate blackbox logs from physical FC for debugging
  • Test firmware behavior without actual flight
  • Capture sensor data for analysis
  • Validate blackbox logging is working correctly

Quick Start

1. Configure FC (One-Time Setup)

# Check FC status
~/​.claude/​skills/​flash-firmware-dfu/​fc-cli.py status /​dev/​ttyACM0

# Configure MSP receiver and arming
cd claude/​developer/​scripts/​testing/​inav/​gps
python3 configure_fc_for_msp_arming.py /​dev/​ttyACM0
python3 configure_fc_blackbox.py /​dev/​ttyACM0

# Calibrate accelerometer via INAV Configurator (if needed)

2. Generate Blackbox Log

SAFETY: Remove propellers before arming!

cd claude/​developer/​scripts/​testing/​inav/​gps

# Arm for 30 seconds (default)
python3 continuous_msp_rc_sender.py /​dev/​ttyACM0

# Arm for custom duration
python3 continuous_msp_rc_sender.py /​dev/​ttyACM0 --duration 60

3. Download Log

cd claude/​developer/​scripts/​testing/​inav/​gps

# Download to default filename
python3 download_blackbox_from_fc.py /​dev/​ttyACM0

# Download to specific file
python3 download_blackbox_from_fc.py /​dev/​ttyACM0 test_log.TXT

4. Decode and Analyze

# Decode log to CSV
blackbox_decode test_log.TXT

# Creates: test_log.01.csv, test_log.01.gps.csv
# View data
head -50 test_log.01.csv

Prerequisites

Hardware:

  • Flight controller with USB connection
  • FC appears as /​dev/​ttyACM0 (or similar)
  • Propellers removed!

Software:

pip3 install pyserial
pip3 install git+https://github.com/​xznhj8129/​mspapi2

FC Configuration:

  1. Accelerometer calibrated (via Configurator)
  2. MSP receiver configured (rx_spi_protocol = MSP)
  3. ARM mode on AUX1 (range 1700-2100)
  4. Blackbox enabled (blackbox_device = SPIFLASH)

Common Issues

FC Won't Arm

Check arming flags:

~/​.claude/​skills/​flash-firmware-dfu/​fc-cli.py status /​dev/​ttyACM0

Common blockers:

  • ACC - Calibrate accelerometer via Configurator
  • CAL - Wait 5+ seconds after boot
  • ANGLE - Level FC or disable small_angle check
  • SETTINGFAIL - Fix RX settings with configure script

No Blackbox Data (0 bytes)

  1. HITL mode was used - Use continuous_msp_rc_sender.py instead
  2. FC not armed - Check arming flags
  3. Blackbox not configured - Run configure_fc_blackbox.py
  4. Flash full - Erase via Configurator

Serial Port Permission Denied

sudo usermod -a -G dialout $USER
# Log out and back in

Key Scripts

All located in: claude/​developer/​scripts/​testing/​inav/​gps/

  • continuous_msp_rc_sender.py - Arm FC and send RC frames
  • download_blackbox_from_fc.py - Download log via MSP
  • configure_fc_for_msp_arming.py - Configure MSP receiver
  • configure_fc_blackbox.py - Configure blackbox settings

Technical Details

RC Frame Rate: 50 Hz (matches CRSF standard) Download Speed: ~2.5 KB/​s (~20s for 50KB log) MSP Commands Used:

  • MSP_SET_RAW_RC (200) - Send RC channels
  • MSP_DATAFLASH_SUMMARY (70) - Query flash status
  • MSP_DATAFLASH_READ (71) - Download data

RC Channel Mapping (AETR):

  • Channel 3: Throttle (1000=low, 1600=mid)
  • Channel 5: AUX1 ARM (1000=disarm, 1800=arm)

See Also

  • Detailed Guide: .claude/​skills/​arm-fc-physical/​REFERENCE.md
  • Flash Firmware: /​flash-firmware-dfu
  • Build Firmware: /​build-inav-target
  • Arm SITL: /​sitl-arm
  • MSP Protocol: /​msp-protocol

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View