diff --git a/microcontroller/ctrl.py b/microcontroller/ctrl.py index 1894780..3958afa 100644 --- a/microcontroller/ctrl.py +++ b/microcontroller/ctrl.py @@ -16,11 +16,11 @@ channels = [ start_addr = 10 -with serial.Serial("/dev/ttyUSB0", 115200) as ser: +with serial.Serial("/dev/ttyUSB0", 500000) as ser: payload = bytearray(512) - FPS = 20 + FPS = 30 FRAME_TIME = 1 / FPS t = 0 diff --git a/microcontroller/test.ino b/microcontroller/test.ino index bbb044b..e943937 100644 --- a/microcontroller/test.ino +++ b/microcontroller/test.ino @@ -11,7 +11,7 @@ size_t bytes_read = 0; void setup() { - Serial.begin(115200); // USB + Serial.begin(500000); // USB while (!Serial) { @@ -31,6 +31,7 @@ void loop() if (packet_ready) { send_packet(); + Serial.println("Ack."); } } @@ -65,7 +66,6 @@ bool update_buffer() if (bytes_read == UNIVERSE_SIZE) { bytes_read = 0; - Serial.println("Ack."); return true; } else