Complete Compass Calibration System: Automatic Magnetometer Calibration & Multi-Point Angular Correction#115
Open
X9X0 wants to merge 5 commits intok3ng:masterfrom
Open
Conversation
Hack in stepper drivers enable pins & DS3231 RTC
Update k3ng_rotator_controller.ino
add AZ & EL stepper driver enable pin functionality
…ual magnetometer calibration and multi-point angular correction Adds complete two-layer calibration: hard-iron offset compensation for magnetometers (HMC5883L, QMC5883L, LSM303) with automatic 360° rotation or manual collection, plus multi-point interpolation table for systematic angular errors. Includes user-friendly wizard with quality assessment, real-time progress feedback, limit switch safety, helper functions for maintainability, and full Yaesu GS-232/Easycomm protocol compatibility. All features accessible via backslash commands with comprehensive help integration. Key improvements: - Automatic & manual magnetometer calibration with quality rating - Completed FEATURE_CALIBRATION multi-point framework with interpolation - Guided calibration wizard (\?CAL) with context-aware recommendations - Real-time progress feedback and validation warnings - DEBUG_CALIBRATION logging and helper functions for code reuse - 15 new serial commands maintaining protocol isolation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
awesome! very cool PR! |
Owner
|
This is impressive! Apologies for being radio silent. I will try to merge
this PR soon. 73 de K3NG
…On Mon, Jan 19, 2026 at 6:38 PM Tobias Wellnitz ***@***.***> wrote:
*dh1tw* left a comment (k3ng/k3ng_rotator_controller#115)
<#115 (comment)>
awesome! very cool PR!
—
Reply to this email directly, view it on GitHub
<#115 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZNU4CO6RQJUIHUFOQ2X2L4HVTFXAVCNFSM6AAAAACQEKIP2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTONZQGQ2DOOJWGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Author
|
To be honest the PR was a mistake, I was trying to push it to my own fork but wasn't paying attention, LOL. I wanted to tune this a little more, but it should be pretty usable as is. Thanks for the kudos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR implements a comprehensive two-layer calibration system for the K3ng rotator controller, providing both magnetometer hard-iron offset compensation and multi-point angular correction tables with linear interpolation. The system supports automatic 360° rotation calibration, manual calibration workflows, and includes an intelligent wizard to guide users through the calibration process.
Key Features
New Serial Commands
Magnetometer:
Multi-Point:
Status:
Files Modified
Testing Recommendations
Benefits
Statistics: 3 files changed, 1,470 insertions(+), 31 deletions(-)