Commit 9029ff4e authored by Jeremy Swerdlow's avatar Jeremy Swerdlow
Browse files

makes change to sample_time in collect-urg-lidar.c

parent 5759ff6f
......@@ -56,7 +56,7 @@ static int print_data(urg_t *urg, long data[], long time_stamp,
z = (long)(length * cos(radian));
y = (long)(length * sin(radian));
// calculate the proper split_time value
sample_time = 25 / 1081 * (offset + sample_num); // 25 ms / 1081 samples per scan * which sample it is.
sample_time = 25f / 1081f * (double)(offset + sample_num); // 25 ms / 1081 samples per scan * which sample it is.
// print out the results
fprintf(stderr, "%ld,%ld,%ld,%d,%ld,%f,%d,%d,",
z, y, time_stamp, intensity[sample_num], length, radian, num_rotations, sample_num);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment