-
Notifications
You must be signed in to change notification settings - Fork 373
magnetometer.js error logging #2447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
magnetometer.js error logging #2447
Conversation
Branch Targeting SuggestionYou've targeted the
If This is an automated suggestion to help route contributions to the appropriate branch. |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
|
Needed because these settings can come back empty. Todo: See if it's a problem that they back back empty. |
User description
Logging to try to resolve an error with the alignment tab not loading.
PR Type
Bug fix
Description
Add null checks for magnetometer alignment data retrieval
Log console messages when sensor alignment values are null
Prevent potential runtime errors from null/undefined data
Add defensive check in board roll axis update function
Diagram Walkthrough
File Walkthrough
magnetometer.js
Add null checks and error logging for alignment datatabs/magnetometer.js
align_mag_roll,align_mag_pitch, andalign_mag_yawsettings retrievaldebugging
updateBoardRollAxisfunction with console logging