Install
$ agentstack add skill-wangyendt-wayne-skills-magnetometer-calibration ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Pywayne Calibration
pywayne.calibration.MagnetometerCalibrator provides magnetometer calibration using sensor data (accelerometer, gyroscope, magnetometer).
Quick Start
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:
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:
# 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.
Important Notes
- Dependencies: Requires
vqf(VQF quaternion filter) andqmt(quaternion math) modules - Method: Currently only supports
close_formmethod - Orientation: Uses VQF for sensor fusion and orientation estimation during calibration
- Output: Prints calibration parameters during processing
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: wangyendt
- Source: wangyendt/wayne-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.