Pywayne Ahrs Tools

AHRS quaternion decomposition and roll/pitch compensation utilities. Use when working with pywayne.ahrs.tools module for quaternion to Euler angle decomposition, or compensating orientation to zero pitch and roll using roll-pitch compensation method.

9 starsOther

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add wangyendt/wayne-skills --skill pywayne-ahrs-tools
Manual install
git clone --depth 1 https://github.com/wangyendt/wayne-skills.git /tmp/wayne-skills
mkdir -p ~/.claude/skills
cp -r /tmp/wayne-skills/pywayne/ahrs/ahrs-tools ~/.claude/skills/pywayne-ahrs-tools

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Pywayne AHRS Tools

This module provides quaternion-based AHRS (Attitude and Heading Reference System) utilities.

## Quick Start

```python
from pywayne.ahrs.tools import quaternion_decompose, quaternion_roll_pitch_compensate
import numpy as np

# Quaternion decomposition
q = np.array([0.70710678, 0, 0, 0.707962])  # w, x, y, z
angle_all, angle_heading, angle_inclination = quaternion_decompose(q)

# Roll/pitch compensation
q_comp = quaternion_roll_pitch_compensate(q)
```

## Quaternion Decomposition

```python
from pywayne.ahrs.tools import quaternion_decompose
import numpy as np

# Input quaternion (w, x, y, z)
q = np.array([w, x, y, z])

# Decompose into angles
angle_all, angle_heading, angle_inclination = quaternion_decompose(q)

# angle_all: Rotation angles around all axes (vertical + horizontal)
# angle_heading: Angle around vertical axis (inclination)
# angle_inclination: Angle around horizontal axis (bank)
```

## Roll/Pitch Compensation

```python
from pywayne.ahrs.tools import quaternion_roll_pitch_compensate
import numpy as np

# Input quaternion (w, x, y, z)
q = np.array([0.989893, -0.099295, 0.024504, -0.098242])

# Compensate pitch and roll to zero
q_comp = quaternion_roll_pitch_compensate(q)
```

## Requirements

- `numpy` - Array operations
- `qmt` - OpenCV's quaternion module for conversions

## Notes

- Decomposition returns both angles (in radians) and heading/inclination
- `angle_all` is computed using 2*arccos/abs(quaternion_z)
Read the full skill on GitHub

Details

Skill name
pywayne-ahrs-tools
Path
pywayne/ahrs/ahrs-tools/SKILL.md
License
MIT
Repo updated
23 October 2026

FAQ

What does the Pywayne Ahrs Tools skill do?

AHRS quaternion decomposition and roll/pitch compensation utilities. Use when working with pywayne.ahrs.tools module for quaternion to Euler angle decomposition, or compensating orientation to zero pitch and roll using roll-pitch compensation method.

How do I install the Pywayne Ahrs Tools skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add wangyendt/wayne-skills --skill pywayne-ahrs-tools. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Pywayne Ahrs Tools popular?

It lives in wangyendt/wayne-skills, which has 9 GitHub stars and 0 forks.

Related skills

Alapi

9

wangyendt/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

Writing & Content

Android App Publisher

9

wangyendt/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.

Mobile Development

Awesome Docs

9

wangyendt/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

Writing & Content

Pywayne Bin Gettool

9

wangyendt/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.

Other

Porters Five Forces

9

tarunccet/pm-skills

Perform Porter's Five Forces analysis — competitive rivalry, supplier power, buyer power, threat of substitutes, and threat of new entrants. Use when analyzing industry dynamics, assessing competitive forces, or evaluating market attractiveness.

Other

Pywayne Calibration Magnetometer Calibration

9

wangyendt/wayne-skills

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.

Other

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.