It is easy to log knock value. Just on end in vemsv3.ini(megatune2.25/mtcfg/vemsv3.ini) add this.
entry = knock_cyl_0_knock_val, "knockvalue", int, "%d"
entry = knock_cyl_0_noise_val, "knocknoise", int, "%d"
Or you can make to see in megatu in Realtime display. Now i can see D and R value
when my car is knocking. How to relate D and R to knock action treshhold,noise scale factor?
Or i just change this value to get knock detectionflag?