Skip to content

Commit abe3b5b

Browse files
nerdCopterclaude
andcommitted
feat: document gyroUnfilt debug fallback in report metadata
When gyroUnfilt data comes from debug[0-2] channels instead of dedicated gyroUnfilt columns, add a ⚠ note in Metadata with the debug mode name (e.g. GYRO_SCALED, RC_SMOOTHING). Pilots need to know that unfiltered gyro spectrums and filtering delay calculations in that report are derived from debug channels, not actual gyroUnfilt — affecting their interpretation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 336b9af commit abe3b5b

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,6 +1697,8 @@ INFO ({input_file_str}): Skipping Step Response input data filtering: {reason}."
16971697
filter_config,
16981698
dynamic_notch,
16991699
rpm_filter,
1700+
debug_fallback: using_debug_fallback,
1701+
debug_mode_name: debug_mode_label,
17001702
};
17011703
match report::generate_markdown_report(&flight_report, report_path) {
17021704
Ok(()) => println!(" [OK] Report written."),

src/report.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ pub struct FlightReport {
5858
pub filter_config: Option<AllFilterConfigs>,
5959
pub dynamic_notch: Option<DynamicNotchConfig>,
6060
pub rpm_filter: Option<RpmFilterConfig>,
61+
/// True when gyroUnfilt came from debug channels instead of dedicated gyroUnfilt columns.
62+
pub debug_fallback: bool,
63+
pub debug_mode_name: Option<&'static str>,
6164
}
6265

6366
/// Generate a structured markdown report and write it to `output_path`.
@@ -93,6 +96,16 @@ pub fn generate_markdown_report(
9396
writeln!(md, "- **{}:** {}", k, v)?;
9497
}
9598
}
99+
if report.debug_fallback {
100+
let mode_str = report
101+
.debug_mode_name
102+
.map_or(String::new(), |m| format!(" ({})", m));
103+
writeln!(
104+
md,
105+
"- **⚠ gyroUnfilt source:** debug[0-2] fallback{} — unfiltered gyro spectrum and filtering delay derived from debug channels, not dedicated gyroUnfilt columns",
106+
mode_str
107+
)?;
108+
}
96109
writeln!(md)?;
97110

98111
// --- Filter Configuration ---

0 commit comments

Comments
 (0)