49 int main(
int argc,
char **argv)
53 printf(
"Usage: print_scans DEVICE BAUD_RATE\n");
56 string lms_dev = argv[1];
60 printf(
"bad baud rate. must be one of {9600, 19200, 38400, 500000}\n");
65 uint32_t num_values = 0;
73 printf(
"initialize failed! are you using the correct device path?\n");
81 int inc = num_values / 11;
82 printf(
"%5d %5d %5d %5d %5d %5d %5d %5d %5d %5d %5d %5d\n",
83 values[0], values[inc],
84 values[2*inc], values[3*inc],
85 values[4*inc], values[5*inc],
86 values[6*inc], values[7*inc],
87 values[8*inc], values[9*inc],
88 values[10*inc], values[num_values-1]);
93 printf(
"woah! error!\n");
101 printf(
"error during uninitialize\n");
104 printf(
"success.\n");
int main(int argc, char **argv)