Support variable-size input to scan_update()
This commit is contained in:
@@ -433,10 +433,11 @@ void
|
||||
scan_update(
|
||||
scan_t * scan,
|
||||
float * lidar_angles_deg,
|
||||
int * lidar_distances_mm,
|
||||
double hole_width_mm,
|
||||
double velocities_dxy_mm,
|
||||
double velocities_dtheta_degrees)
|
||||
int * lidar_distances_mm,
|
||||
int scan_size,
|
||||
double hole_width_mm,
|
||||
double velocities_dxy_mm,
|
||||
double velocities_dtheta_degrees)
|
||||
{
|
||||
/* Take velocity into account */
|
||||
int degrees_per_second = (int)(scan->rate_hz * 360);
|
||||
|
||||
@@ -134,7 +134,8 @@ void
|
||||
scan_update(
|
||||
scan_t * scan,
|
||||
float * lidar_angles_deg,
|
||||
int * lidar_distances_mm,
|
||||
int * lidar_distances_mm,
|
||||
int scan_size,
|
||||
double hole_width_mm,
|
||||
double velocities_dxy_mm,
|
||||
double velocities_dtheta_degrees);
|
||||
|
||||
Reference in New Issue
Block a user