From 2d56f86c5d2ab02e22c17b1cc180531e1e39da74 Mon Sep 17 00:00:00 2001 From: Nathan Schulte Date: Sat, 25 Jan 2025 11:53:08 -0600 Subject: [PATCH 1/2] tidy Datalog pattern --- firmware/tunerstudio/tunerstudio.template.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/firmware/tunerstudio/tunerstudio.template.ini b/firmware/tunerstudio/tunerstudio.template.ini index 7b9ffe3302..09d22248ef 100644 --- a/firmware/tunerstudio/tunerstudio.template.ini +++ b/firmware/tunerstudio/tunerstudio.template.ini @@ -1678,8 +1678,9 @@ gaugeCategory = GPPWM Outputs ; see [OutputChannels] ; [Datalog] - ; Channel Label Type Format - entry = time, @@GAUGE_NAME_TIME@@, float, "%.3f" +; entry = Channel, Label, Type, Format, Enabled Cond, Lag + entry = time, @@GAUGE_NAME_TIME@@, float, "%.3f" + @@DATALOG_SECTION_FROM_FILE@@ [Menu] From cb3577aa4f72b9178a0dc004ed45489306aa58d4 Mon Sep 17 00:00:00 2001 From: Nathan Schulte Date: Sat, 25 Jan 2025 11:53:37 -0600 Subject: [PATCH 2/2] add Lambda and AFR Datalog entry aliases MegaLogViewer looks for these by default --- firmware/tunerstudio/tunerstudio.template.ini | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/firmware/tunerstudio/tunerstudio.template.ini b/firmware/tunerstudio/tunerstudio.template.ini index 09d22248ef..67538f4c7e 100644 --- a/firmware/tunerstudio/tunerstudio.template.ini +++ b/firmware/tunerstudio/tunerstudio.template.ini @@ -1680,7 +1680,15 @@ gaugeCategory = GPPWM Outputs [Datalog] ; entry = Channel, Label, Type, Format, Enabled Cond, Lag entry = time, @@GAUGE_NAME_TIME@@, float, "%.3f" - +#if LAMBDA + entry = lambdaValues1, "Lambda", float, "%.3f", 1 +; entry = lambdaValues2, "Lambda", float, "%.3f", 0 +; entry = lambdaValues3, "Lambda", float, "%.3f", 0 +; entry = lambdaValues4, "Lambda", float, "%.3f", 0 +#else + entry = AFRValue, "AFR", float, "%.2f", 1 +; entry = AFRValue2, "AFR", float, "%.2f", 0 +#endif @@DATALOG_SECTION_FROM_FILE@@ [Menu]