48 int main(
int argc,
char **argv)
52 printf(
"Usage: print_scans DEVICE BAUD_RATE\n");
55 string lms_dev = argv[1];
59 printf(
"bad baud rate. must be one of {9600, 19200, 38400, 500000}\n");
64 uint32_t num_values = 0;
72 printf(
"initialize failed! are you using the correct device path?\n");
81 double delta = t.
toSec() - prev_scan_time.
toSec();
82 printf(
"%f (%f)\n", delta, 1.0 / delta);
88 printf(
"woah! error!\n");
96 printf(
"error during uninitialize\n");
int main(int argc, char **argv)