Pages: [1]
Author Topic: trim heatmap tool for tuning KFKHFM  (Read 4883 times)
nyet
Administrator
Hero Member
*****

Karma: +608/-168
Offline Offline

Posts: 12278


WWW
« on: October 24, 2024, 01:20:02 AM »

Similar to the FKVVS tuner, this is specifically made to tune KFKHFM based on fr/frm logs.

https://github.com/nyetwurk/trim-heatmap/releases

It is command line based, so you have to give it one or more log files on the command line. If you do not know what that means, this tool is not for you



Code:
usage: heatmap.py [-h] [-w WINDOW] [-l LOAD_FILTER] [-r RPM_FILTER] [-m MIN_SAMPLES] [-f] [-u] [-v] [filename ...]

Create trim heatmap for KFKHFM based on fr/frm datalog

positional arguments:
  filename              csv files(s) to parse (log.csv)

options:
  -h, --help            show this help message and exit
  -w WINDOW, --window WINDOW
                        number of sequential rows to detect constant rpm/load (5)
  -l LOAD_FILTER, --load-filter LOAD_FILTER
                        change in load which is still "constant" load (10)
  -r RPM_FILTER, --rpm-filter RPM_FILTER
                        change in RPM which is still "constant" RPM (100)
  -m MIN_SAMPLES, --min-samples MIN_SAMPLES
                        minimum number of samples required to generate a cell (10)
  -f, --use-fr          use "fr" instead of "frm" (the default)
  -u, --use-unweighted-mean
                        use unweighted mean instead of weighted average (the default)
  -v, --verbose
« Last Edit: October 24, 2024, 01:22:52 AM by nyet » Logged

ME7.1 tuning guide
ECUx Plot
ME7Sum checksum
Trim heatmap tool

Please do not ask me for tunes. I'm here to help people make their own.

Do not PM me technical questions! Please, ask all questions on the forums! Doing so will ensure the next person with the same issue gets the opportunity to learn from your ex
ratosluaf
Jr. Member
**

Karma: +1/-3
Offline Offline

Posts: 38


« Reply #1 on: January 06, 2025, 03:31:43 AM »

I've done something similar in the past for myself.
Now I had some free time so I've rewritten it to streamlit and deployed it on the community cloud.

Here's the link: https://fixhfm.streamlit.app/

It does depend on nmot_w, rl_w and fr_w from me7logger, so idk if it will work with all logs. It does stick your data to nearest nmot_w and rl_w in kfkhfm table and calculate it depending on weighted mean.

You can copy your table from tunerpro or import your table from csv file - example of log file and map csv file in github repo.

github repo: https://github.com/rwalkuski/hfm_fixer

Any feedback is welcome since now i have no possibility to test output myself, but had success with my own car in the past.


Edit: for now, when you want to copy from site to tunerpro, please buffer the data in notepad or any other text editor Copying directly into tunerpro causes destroying of data table, but i don't know why for now.
edit2: copying directly from site lacks of carriage return which tunerpro interprets as new line. At the moment, i do not know how to fix that, so please buffer your data.
« Last Edit: January 06, 2025, 05:09:25 AM by ratosluaf » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 1.701 seconds with 16 queries. (Pretty URLs adds 0s, 0q)