Skip to content

fix(configuration sequence): log the EKF primary IMU - #1860

Merged
amilcarlucas merged 1 commit into
masterfrom
primary
Jul 30, 2026
Merged

fix(configuration sequence): log the EKF primary IMU#1860
amilcarlucas merged 1 commit into
masterfrom
primary

Conversation

@amilcarlucas

Copy link
Copy Markdown
Collaborator

Description

log the EKF primary IMU

Checklist

  • Run pre-commit checks locally
  • Verified by a human programmer
  • All commits are signed off (use git commit --signoff)
  • Code follows our coding standards
  • Documentation updated if needed
  • No breaking changes or properly documented

Testing

Describe how you tested these changes:

  • Unit tests pass
  • Integration tests pass
  • Manual testing performed
  • Tested on flight controller hardware

Copilot AI review requested due to automatic review settings July 30, 2026 00:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Updates the ArduCopter configuration sequence to log the EKF’s primary IMU by deriving the batch logging mask from EK3_PRIMARY.

Changes:

  • Derive INS_LOG_BAT_MASK from EK3_PRIMARY for configurations that enable batch logging (e.g., F4/big props path).
  • Derive INS_LOG_BAT_MASK from EK3_PRIMARY for PID notch filter tuning steps (instead of forcing a fixed mask).

},
"derived_parameters": {
"INS_LOG_BAT_MASK": { "New Value": "1 if 'F4' in vehicle_components['Flight Controller']['Specifications']['MCU Series'] or vehicle_components['Propellers']['Specifications']['Diameter_inches'] >= 15 else 0", "Change Reason": "Use acc and gyro batch logging on F4 processors or big props, gyro raw logging on others" },
"INS_LOG_BAT_MASK": { "New Value": "2**fc_parameters['EK3_PRIMARY'] if 'F4' in vehicle_components['Flight Controller']['Specifications']['MCU Series'] or vehicle_components['Propellers']['Specifications']['Diameter_inches'] >= 15 else 0", "Change Reason": "Use acc and gyro batch logging on F4 processors or big props, gyro raw logging on others" },
"LOG_BITMASK": { "New Value": 407517, "Change Reason": "Log relevant data for PID notch filters tuning. Later on we'll change this to other subsystems" }
},
"derived_parameters": {
"INS_LOG_BAT_MASK": { "New Value": "2**fc_parameters['EK3_PRIMARY']", "Change Reason": "PID notch filters require batch logging, not raw logging" }
},
"derived_parameters": {
"INS_LOG_BAT_MASK": { "New Value": "1 if 'F4' in vehicle_components['Flight Controller']['Specifications']['MCU Series'] or vehicle_components['Propellers']['Specifications']['Diameter_inches'] >= 15 else 0", "Change Reason": "Use acc and gyro batch logging on F4 processors or big props, gyro raw logging on others" },
"INS_LOG_BAT_MASK": { "New Value": "2**fc_parameters['EK3_PRIMARY'] if 'F4' in vehicle_components['Flight Controller']['Specifications']['MCU Series'] or vehicle_components['Propellers']['Specifications']['Diameter_inches'] >= 15 else 0", "Change Reason": "Use acc and gyro batch logging on F4 processors or big props, gyro raw logging on others" },
@amilcarlucas
amilcarlucas merged commit 01f6c75 into master Jul 30, 2026
13 of 19 checks passed
@amilcarlucas
amilcarlucas deleted the primary branch July 30, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants