Increase baudrate
This commit is contained in:
parent
74526fa07d
commit
34fe7f55d0
@ -16,11 +16,11 @@ channels = [
|
|||||||
|
|
||||||
start_addr = 10
|
start_addr = 10
|
||||||
|
|
||||||
with serial.Serial("/dev/ttyUSB0", 115200) as ser:
|
with serial.Serial("/dev/ttyUSB0", 500000) as ser:
|
||||||
|
|
||||||
payload = bytearray(512)
|
payload = bytearray(512)
|
||||||
|
|
||||||
FPS = 20
|
FPS = 30
|
||||||
FRAME_TIME = 1 / FPS
|
FRAME_TIME = 1 / FPS
|
||||||
t = 0
|
t = 0
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ size_t bytes_read = 0;
|
|||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
Serial.begin(115200); // USB
|
Serial.begin(500000); // USB
|
||||||
|
|
||||||
while (!Serial)
|
while (!Serial)
|
||||||
{
|
{
|
||||||
@ -31,6 +31,7 @@ void loop()
|
|||||||
if (packet_ready)
|
if (packet_ready)
|
||||||
{
|
{
|
||||||
send_packet();
|
send_packet();
|
||||||
|
Serial.println("Ack.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,7 +66,6 @@ bool update_buffer()
|
|||||||
if (bytes_read == UNIVERSE_SIZE)
|
if (bytes_read == UNIVERSE_SIZE)
|
||||||
{
|
{
|
||||||
bytes_read = 0;
|
bytes_read = 0;
|
||||||
Serial.println("Ack.");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user