Removed extra file, and fixed USB not sending bug.
diff --git a/gyro_board/src/libusb-driver/get.cc b/gyro_board/src/libusb-driver/get.cc
index f2ad2f8..b50b9ea 100644
--- a/gyro_board/src/libusb-driver/get.cc
+++ b/gyro_board/src/libusb-driver/get.cc
@@ -154,6 +154,7 @@
uint8_t *data_pointer = data;
memcpy(&real_data, &data_pointer, sizeof(data_pointer));
+ int count = 0;
while (should_continue()) {
r = dev_handle_->interrupt_transfer(
0x81, data, sizeof(data), &actual, 1000);
@@ -165,6 +166,10 @@
if (r != 0) {
LOG(ERROR, "Read Error. Read %d\n", actual);
}
+
+ ++count;
+ if (count < 100) continue;
+ count = 0;
printf("angle: %"PRId64"\n", real_data->gyro_angle);
printf("drivel: %d\n", real_data->left_drive);