Skip to content

Commit 9ed4f0d

Browse files
committed
Change formatting
1 parent 3fadcc3 commit 9ed4f0d

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

velodyne_pointcloud/src/lib/rawdata.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,10 @@ void RawData::unpack(
328328
float time = 0;
329329
if (timing_offsets_.size()) {
330330
time = timing_offsets_[i][j] + time_diff_start_to_this_packet;
331-
} else
331+
} else {
332332
time = time_diff_start_to_this_packet;
333-
333+
}
334+
334335
if (tmp.uint == 0) { // no valid laser beam return
335336
// call to addPoint is still required since output could be organized
336337
data.addPoint(
@@ -547,9 +548,10 @@ void RawData::unpack_vls128(
547548
if (timing_offsets_.size()) {
548549
time = timing_offsets_[block / 4][firing_order + laser_number / 64] +
549550
time_diff_start_to_this_packet;
550-
} else
551+
} else {
551552
time = time_diff_start_to_this_packet;
552-
553+
}
554+
553555
velodyne_pointcloud::LaserCorrection & corrections =
554556
calibration_->laser_corrections[laser_number];
555557

@@ -813,9 +815,10 @@ void RawData::unpack_vlp16(
813815
float time = 0;
814816
if (timing_offsets_.size()) {
815817
time = timing_offsets_[block][firing * 16 + dsr] + time_diff_start_to_this_packet;
816-
} else
818+
} else {
817819
time = time_diff_start_to_this_packet;
818-
820+
}
821+
819822
data.addPoint(
820823
x_coord, y_coord, z_coord, corrections.laser_ring,
821824
distance, intensity, time);

0 commit comments

Comments
 (0)