Commit eeec2937 authored by Earlham Field Science's avatar Earlham Field Science
Browse files

minor fixes

parent d0cc0c22
......@@ -45,8 +45,8 @@ static int print_data(urg_t *urg, long data[], long time_stamp,
// this for loop prints each sample from the data array
int i;
for (i = 0; i < data_n; ++i) {
length = data[i]
radian = urg_index2rad(urg, i)
length = data[i];
radian = urg_index2rad(urg, i);
// check to make sure the data is within an acceptable range for measurement
if ((length <= min_distance) || (length >= max_distance)) {
continue;
......@@ -108,8 +108,8 @@ int main(int argc, char *argv[]) {
1); // step, TODO: look at increasing this to reduce num samples
urg_start_measurement(&urg, URG_DISTANCE_INTENSITY, URG_SCAN_INFINITY, 0);
fprintf(stderr, "z,y,time stamp from lidar,intensity,")
fprintf(stderr, "length,radian,time stamp from print_data\n", );
fprintf(stderr, "z,y,time stamp from lidar,intensity,");
fprintf(stderr, "length,radian,time stamp from print_data\n");
do {
n = urg_get_distance_intensity(&urg, data, intensity, &time_stamp);
num_rotations = print_data(&urg, data, time_stamp, intensity, n, num_rotations);
......
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