updated most things to work on Wheezy
I haven't done the new opencv packages yet, so I just didn't test
compiling that stuff.
Almost all of the changes were related to user-defined string literals
breaking things like "%"PRIu32" (in our code and other people's).
diff --git a/gyro_board/src/libusb-driver/get.cc b/gyro_board/src/libusb-driver/get.cc
index b3cdc28..4d7f7cb 100644
--- a/gyro_board/src/libusb-driver/get.cc
+++ b/gyro_board/src/libusb-driver/get.cc
@@ -53,11 +53,10 @@
std::string GyroDriver::GetDebugData() {
char data[64];
- int r;
int transferred;
- r = dev_handle_->bulk_transfer(0x82,
- (unsigned char *)data, sizeof(data),
- &transferred, 0);
+ dev_handle_->bulk_transfer(0x82,
+ (unsigned char *)data, sizeof(data),
+ &transferred, 0);
return std::string(data, transferred);
}
@@ -130,7 +129,7 @@
if (count < 100) continue;
count = 0;
- printf("angle: %"PRId64"\n", real_data->gyro_angle);
+ printf("angle: %" PRId64 "\n", real_data->gyro_angle);
printf("drivel: %d\n", real_data->left_drive);
printf("driver: %d\n", real_data->right_drive);
printf("shooter: %d\n", real_data->shooter);