Pywayne Calibration Magnetometer Calibration
Sensor calibration toolkit with magnetometer calibration using close-form method. Use when calibrating IMU sensors (accelerometer, gyroscope, magnetometer) to compute soft-iron matrix and hard-iron offset for magnetometer correction. Requires sensor fusion with VQF for orientation estimation.
Install
npx skills add wangyendt/wayne-skills --skill pywayne-calibration-magnetometer-calibrationgit clone --depth 1 https://github.com/wangyendt/wayne-skills.git /tmp/wayne-skills
mkdir -p ~/.claude/skills
cp -r /tmp/wayne-skills/pywayne/calibration/magnetometer-calibration ~/.claude/skills/pywayne-calibration-magnetometer-calibrationPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Pywayne Calibration `pywayne.calibration.MagnetometerCalibrator` provides magnetometer calibration using sensor data (accelerometer, gyroscope, magnetometer). ## Quick Start ```python from pywayne.calibration import MagnetometerCalibrator import numpy as np # Sensor data: ts (N,), acc (N,3), gyro (N,3), mag (N,3) calibrator = MagnetometerCalibrator(method='close_form') Sm, h = calibrator.process(ts, acc, gyro, mag) # Sm: Soft-iron matrix (3x3) # h: Hard-iron offset vector (3,) ``` ## Input Data Format Sensor data must be numpy arrays with matching sample counts: ```python ts # (N,) - Timestamps (seconds) acc # (N, 3) - Accelerometer [ax, ay, az] gyro # (N, 3) - Gyroscope [gx, gy, gz] mag # (N, 3) - Magnetometer [mx, my, mz] ``` **Data requirements:** - Sensor data should cover various orientations for effective calibration - Minimum data points required (exact number depends on calibration stability) - Arrays must be C-contiguous (auto-converted internally) ## Calibration Parameters `process()` returns: | Parameter | Shape | Description | |-----------|--------|-------------| | `Sm` | (3, 3) | Soft-iron matrix | | `h` | (3,) | Hard-iron offset vector | ## Usage in Application Apply calibration to raw magnetometer readings: ```python # Calibrated reading m_calibrated = Sm @ (m_raw - h) ``` ## Temporal Calibration Temporal calibration module exists but is reserved for future expansion. Currently no functionality is implemented.
Details
- Skill name
pywayne-calibration-magnetometer-calibration- Repository
- wangyendt/wayne-skills
- Path
pywayne/calibration/magnetometer-calibration/SKILL.md- License
- MIT
- Repo updated
- 23 October 2026
FAQ
What does the Pywayne Calibration Magnetometer Calibration skill do?
Sensor calibration toolkit with magnetometer calibration using close-form method. Use when calibrating IMU sensors (accelerometer, gyroscope, magnetometer) to compute soft-iron matrix and hard-iron offset for magnetometer correction. Requires sensor fusion with VQF for orientation estimation.
How do I install the Pywayne Calibration Magnetometer Calibration skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add wangyendt/wayne-skills --skill pywayne-calibration-magnetometer-calibration. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Pywayne Calibration Magnetometer Calibration popular?
It lives in wangyendt/wayne-skills, which has 9 GitHub stars and 0 forks.
Related skills
Alapi
9wangyendt/wayne-skills
Comprehensive ALAPI skill covering the full bundled ALAPI OpenAPI catalog. Use when the user mentions ALAPI, alapi, ALAPI_TOKEN, openapi.json, or an ALAPI path like /api/..., or asks to find which ALAPI API matches a business need, choose between similar ALAPI endpoints, explain request fields, prepare or execute a request, or troubleshoot an ALAPI response. Covers inspirational content, articles, news and hotlists, AI chat/translation/NLP, OCR and document recognition, weather and calendar data, IP/phone/ID/domain/ICP/enterprise lookup and verification, finance/exchange/gold/oil/crypto market
Android App Publisher
9wangyendt/wayne-skills
Build or publish standalone Android APKs to an authenticated OSS distribution service, update the latest release, list published apps, and generate stable download links and QR codes. Use for Android app sharing and release management, not generic OSS operations or app-store uploads.
Awesome Docs
9wangyendt/wayne-skills
Use this skill whenever the user asks to record, organize, update, or maintain project documentation, including architecture overviews and decisions, technical books and derivations, API/protocol/configuration references, implementation plans, roadmaps, todos, risks, experiments, know-how, or common commands. Choose paths and naming by document purpose, preserve existing canonical locations, and check links when reorganizing. Defaults to the target project’s docs directory unless the user specifies another location. Covers reader-first technical explanations and interactive HTML documents as w
Pywayne Data Structure
9wangyendt/wayne-skills
Data structure toolkit for logical condition trees, union-find operations, and XML file I/O. Use when working with tree-based data structures, set operations, union-find algorithms, or XML parsing and serialization.
Pywayne Bin Gettool
9wangyendt/wayne-skills
Fetch and install C++ tools/libraries from cpp_tools repository. Use when users need to download or clone third-party C++ libraries such as eigen, opencv, pcl, fmt. Use for building tools from source using CMake, installing tools with installation scripts, listing available tools, or managing cpp_tools repository URL. Triggered by requests to fetch, get, download, clone, or install C++ tools or libraries.
Pywayne Dsp
9wangyendt/wayne-skills
Digital signal processing toolkit for filtering, peak detection, detrending, and curve similarity. Use when working with sensor data, signal preprocessing, feature extraction, noise suppression, or time-series analysis. Includes Butterworth filter, One-Euro filter, signal detrending, DTW curve similarity, Welford standard deviation, and sliding window extrema detection.
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.