Flight axis override test + idiot-proof mag alignment handling for FCs without a mag #2463
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.
User description
Addresses bot comments
PR Type
Bug fix, Tests
Description
Fix test counter logic in regression tests to properly track passed/failed counts
Correct flight axis override test imports and API property references
Handle both singular and plural error field names in test assertions
Improve magnetometer promise handling and error logging with proper null guards
Diagram Walkthrough
File Walkthrough
test_flight_axis_override.js
Fix decompiler import and flight API property namesjs/transpiler/transpiler/tests/test_flight_axis_override.js
Decompilerimport from decompiler.js moduleflight.armedtoflight.isArmednew Decompiler()instantiation
erroranderrorsproperties
test_override_regressions.js
Fix test counter logic for accurate pass/fail trackingjs/transpiler/transpiler/tests/test_override_regressions.js
passed += runTest()pattern with proper if/else logicfor all 14 tests
passedandfailedcounters based on testresults
Failed: 0"
magnetometer.js
Improve magnetometer promise handling and error loggingtabs/magnetometer.js
messages
return Promise.resolve()in null data guards for properpromise chaining
.catch()error handlers for all three magnetometer alignmentsettings calls
console.logtoconsole.warnfor null data warnings and addedconsole.errorfor failures