Update LorenzAttractor_ESP32.ino

This commit is contained in:
Alex Spataru 2024-12-03 02:46:20 -05:00 committed by GitHub
parent 6d568de039
commit 486e214c9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,9 +56,6 @@ int32_t z = 0; // Initial Z value
// Time step (scaled by 1000)
const int32_t dt = 10; // 0.01 scaled by 1000
// Interval between data transmissions (microseconds)
const unsigned long transmissionInterval = 1000;
// Queue for asynchronous data transmission
QueueHandle_t dataQueue;
@ -82,7 +79,7 @@ void simulationTask(void *param) {
xQueueSend(dataQueue, &data, portMAX_DELAY);
// Maintain consistent time step
vTaskDelay(pdMS_TO_TICKS(1));
vTaskDelay(pdMS_TO_TICKS(dt));
}
}