From c32527eee38056fc8f0b71a2702dfaa64faa3fea Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Tue, 4 Feb 2014 06:27:09 +0000 Subject: [PATCH] Switch to 921600 baud rate --- vis/config.py | 2 +- yue/main.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vis/config.py b/vis/config.py index 08cc4ea..b2cfb2f 100644 --- a/vis/config.py +++ b/vis/config.py @@ -7,7 +7,7 @@ class Config: defaults = { 'serial': { 'device': '/dev/ttyACM0', - 'baudrate': '9600', + 'baudrate': '921600', 'parity': 'N', 'databits': '8', 'stopbits': '1', diff --git a/yue/main.cpp b/yue/main.cpp index 20186e1..5b82803 100644 --- a/yue/main.cpp +++ b/yue/main.cpp @@ -45,6 +45,7 @@ int main() { // Interruption Declarations clock1.attach(&clock1_interrupt, TIME_ACCURACY); // maximun accuracy be 0.1s serial.attach(&serialRx_interrupt, Serial::RxIrq); // receive interrupt for serialS + serial.baud(921600); magSensor.begin(); serial.printf("\r\n============= Start of the program ============\r\n"); -- 2.43.2