Skip to content

Commit

Permalink
feat: add static to global variables
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxiao committed Jul 18, 2019
1 parent f9612a1 commit f1043b8
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions rslidar_pointcloud/src/rawdata.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,19 +179,18 @@ class RawData
bool info_print_flag_;
};

float VERT_ANGLE[32];
float HORI_ANGLE[32];
float aIntensityCal[7][32];
float aIntensityCal_old[1600][32];
bool Curvesis_new = true;
int g_ChannelNum[32][51];
float CurvesRate[32];

float temper = 31.0;
int tempPacketNum = 0;
int numOfLasers = 16;
int TEMPERATURE_RANGE = 40;

static float VERT_ANGLE[32];
static float HORI_ANGLE[32];
static float aIntensityCal[7][32];
static float aIntensityCal_old[1600][32];
static bool Curvesis_new = true;
static int g_ChannelNum[32][51];
static float CurvesRate[32];

static float temper = 31.0;
static int tempPacketNum = 0;
static int numOfLasers = 16;
static int TEMPERATURE_RANGE = 40;
} // namespace rslidar_rawdata

#endif // __RAWDATA_H

0 comments on commit f1043b8

Please sign in to comment.