Skip to content

Commit

Permalink
Merge pull request #105 from fudger/patch-1
Browse files Browse the repository at this point in the history
Remove unused constants.
  • Loading branch information
jack-oquin committed Sep 20, 2016
2 parents 34d1dad + e3d7e74 commit d8b0c2f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions velodyne_pointcloud/include/velodyne_pointcloud/rawdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,10 @@ namespace velodyne_rawdata
static const int SCANS_PER_BLOCK = 32;
static const int BLOCK_DATA_SIZE = (SCANS_PER_BLOCK * RAW_SCAN_SIZE);

static const float ROTATION_RESOLUTION = 0.01f; /**< degrees */
static const uint16_t ROTATION_MAX_UNITS = 36000; /**< hundredths of degrees */

/** According to Bruce Hall DISTANCE_MAX is 65.0, but we noticed
* valid packets with readings up to 130.0. */
static const float DISTANCE_MAX = 130.0f; /**< meters */
static const float DISTANCE_RESOLUTION = 0.002f; /**< meters */
static const float DISTANCE_MAX_UNITS = (DISTANCE_MAX
/ DISTANCE_RESOLUTION + 1.0);
static const float ROTATION_RESOLUTION = 0.01f; // [deg]
static const uint16_t ROTATION_MAX_UNITS = 36000u; // [deg/100]
static const float DISTANCE_RESOLUTION = 0.002f; // [m]

/** @todo make this work for both big and little-endian machines */
static const uint16_t UPPER_BANK = 0xeeff;
static const uint16_t LOWER_BANK = 0xddff;
Expand Down

0 comments on commit d8b0c2f

Please sign in to comment.