Pywayne Calibration Magnetometer Calibration

v0.1.0

Sensor calibration toolkit with magnetometer calibration using close-form method. Use when calibrating IMU sensors (accelerometer, gyroscope, magnetometer) t...

0· 504·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for wangyendt/magnetometer-calibration.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Pywayne Calibration Magnetometer Calibration" (wangyendt/magnetometer-calibration) from ClawHub.
Skill page: https://clawhub.ai/wangyendt/magnetometer-calibration
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Canonical install target

openclaw skills install wangyendt/magnetometer-calibration

ClawHub CLI

Package manager switcher

npx clawhub@latest install magnetometer-calibration
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description (magnetometer calibration) matches the SKILL.md: example usage, inputs, and expected outputs are all calibration-related. Declared dependencies (vqf and qmt) are relevant to sensor fusion and quaternion math.
Instruction Scope
SKILL.md stays within scope: it describes API usage, expected numpy arrays, and calibration outputs. It does not instruct reading arbitrary system files, accessing network endpoints, or exfiltrating data.
Install Mechanism
There is no install spec (instruction-only). That is low-risk, but the document names Python dependencies (vqf, qmt) without describing how to obtain/install them — users/agents must ensure a suitable Python environment exists.
Credentials
No environment variables, credentials, or config paths are requested. This is proportionate for an offline calibration utility that operates on provided sensor arrays.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent presence or modify other skills; nothing in the SKILL.md asks for elevated or permanent privileges.
Assessment
This appears coherent and low-risk: it is an instruction-only Python helper that requires numpy plus domain packages (vqf, qmt). Before using, ensure you or the agent run it in a trusted Python environment with those packages from known sources (PyPI/GitHub) and verify compatibility. The SKILL.md provides no install steps, no network I/O, and requests no secrets — treat sensor data as sensitive and run locally. If you plan to let an autonomous agent install packages, review where vqf/qmt would be fetched from and prefer pinned releases or verified package sources.

Like a lobster shell, security has layers — review code before you run it.

latestvk97901v2nh8he21cht0q499rxn816nyy
504downloads
0stars
1versions
Updated 2mo ago
v0.1.0
MIT-0

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:

ParameterShapeDescription
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) and qmt (quaternion math) modules
  • Method: Currently only supports close_form method
  • Orientation: Uses VQF for sensor fusion and orientation estimation during calibration
  • Output: Prints calibration parameters during processing

Comments

Loading comments...