From 6b4f3d9f4598ebd5e4a51df737feff3bf3499e42 Mon Sep 17 00:00:00 2001 From: rusEfi Date: Sun, 5 May 2019 00:34:47 -0400 Subject: [PATCH] increasing metric frequency to make metric more repetative --- .../ui/src/com/rusefi/ui/etb/EtbMonteCarloSequence.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java_console/ui/src/com/rusefi/ui/etb/EtbMonteCarloSequence.java b/java_console/ui/src/com/rusefi/ui/etb/EtbMonteCarloSequence.java index 09d692f74b..cbfbe01054 100644 --- a/java_console/ui/src/com/rusefi/ui/etb/EtbMonteCarloSequence.java +++ b/java_console/ui/src/com/rusefi/ui/etb/EtbMonteCarloSequence.java @@ -44,8 +44,10 @@ public class EtbMonteCarloSequence { public void run() { CommandQueue.getInstance().write(CANCEL_DIRECT_DRIVE_COMMAND); sleep(3 * SECOND); - // 3000 data points at 10Hz should be 300 seconds worth of data - StandardTestSequence.metric.start(/* buffer size: */3000, /*period, ms: */ 100); + int durationSeconds = 300; + int frequencyHz = 100; + // 30000 data points at 100Hz should be 300 seconds worth of data + StandardTestSequence.metric.start(/* buffer size: */durationSeconds * frequencyHz, /*period, ms: */ 1000 / frequencyHz); // start first cycle. At the end of the run it would decide if it wants to start from beginning again executor.execute(() -> runRandomCycle());