From cbe388a787c7d3adc300954d574a55dc96a2df60 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 17 Sep 2022 15:29:48 -0400 Subject: [PATCH] frameTime sleep reduced to 0.01 to increase accuracy --- cubesatsim/cubesatsim.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index 7077d6a5..e7f73a92 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -266,7 +266,7 @@ void loop() { // while ((millis() - sampleTime) < ((unsigned int)samplePeriod)) // - 250)) // was 250 100 while ((millis() - sampleTime) < ((unsigned int)frameTime)) // - 250)) // was 250 100 - sleep(0.1); // 25); // 0.5); // 25); + sleep(0.01); // was 0.1 sec sampleTime = (unsigned int) millis(); // delay(2000);