got sending encoder values working
diff --git a/bbb_cape/src/bbb/uart_reader.cc b/bbb_cape/src/bbb/uart_reader.cc
index 46c9962..8928e5a 100644
--- a/bbb_cape/src/bbb/uart_reader.cc
+++ b/bbb_cape/src/bbb/uart_reader.cc
@@ -73,8 +73,8 @@
//options.c_iflag |= IGNCR | PARMRK;
options.c_oflag = 0;
options.c_lflag = 0;
- options.c_cc[VMIN] = 0;
- options.c_cc[VTIME] = 10;
+ options.c_cc[VMIN] = 20;
+ options.c_cc[VTIME] = 0;
if (tcsetattr(fd_, TCSANOW, &options) != 0) {
LOG(FATAL, "tcsetattr(%d, TCSANOW, %p) failed with %d: %s\n",
fd_, &options, errno, strerror(errno));
diff --git a/bbb_cape/src/bbb/uart_reader_main.cc b/bbb_cape/src/bbb/uart_reader_main.cc
index aadd902..8815f66 100644
--- a/bbb_cape/src/bbb/uart_reader_main.cc
+++ b/bbb_cape/src/bbb/uart_reader_main.cc
@@ -1,4 +1,5 @@
#include <stdint.h>
+#include <inttypes.h>
#include "aos/atom_code/init.h"
#include "aos/common/logging/logging_impl.h"
@@ -46,6 +47,8 @@
last_packet_time = Time::Now();
LOG(DEBUG, "got one!\n");
+ LOG(DEBUG, "timestamp %" PRIu64 "\n", packet.timestamp);
+ LOG(DEBUG, "0=%d\n", packet.main.encoders[0]);
//TODO (danielp): Do stuff here with the data we got.
}