]> Pileus Git - ~andy/csm213a-hw/commitdiff
Switch to 921600 baud rate
authorAndy Spencer <andy753421@gmail.com>
Tue, 4 Feb 2014 06:27:09 +0000 (06:27 +0000)
committerAndy Spencer <andy753421@gmail.com>
Tue, 4 Feb 2014 06:27:09 +0000 (06:27 +0000)
vis/config.py
yue/main.cpp

index 08cc4eaa61ad981050bc3b7b9389a71d568a9c42..b2cfb2f9a833ee13e471f456e30c1ca1866b4686 100644 (file)
@@ -7,7 +7,7 @@ class Config:
        defaults = {
                'serial': {
                        'device':   '/dev/ttyACM0',
-                       'baudrate': '9600',
+                       'baudrate': '921600',
                        'parity':   'N',
                        'databits': '8',
                        'stopbits': '1',
index 20186e1f54595b01466b25c9cfc8c271b3719d27..5b82803062bc8f9865ece13ebef0cbabd8b78540 100644 (file)
@@ -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");