init
This commit is contained in:
40
device/control/acs/buffercode/sscancode.h
Normal file
40
device/control/acs/buffercode/sscancode.h
Normal file
@@ -0,0 +1,40 @@
|
||||
#ifndef SSCANCODE_H
|
||||
#define SSCANCODE_H
|
||||
|
||||
|
||||
#include <QString>
|
||||
|
||||
|
||||
class SScanCode
|
||||
{
|
||||
|
||||
|
||||
public:
|
||||
SScanCode();
|
||||
QString getCode();
|
||||
void setXWorkRange(double value);
|
||||
void setYWorkRange(double value);
|
||||
void setXSampInterval(double value);
|
||||
void setYSampInterval(double value);
|
||||
private:
|
||||
int getSampTotalNum();
|
||||
|
||||
private:
|
||||
double xWorkRange{1.0};
|
||||
double yWorkRange{1.0};
|
||||
double xSampInterval{1.0};
|
||||
double ySampInterval{1.0};
|
||||
|
||||
const int yNumberOfUnitSamples{12};
|
||||
const int xNumberOfUnitSamples{20};
|
||||
const int xNumberOfLineSegmentSamples{200};
|
||||
const int accDecSampCount{1500};
|
||||
// rangeInitValue 用于初始化保存测距值的数组
|
||||
double rangeInitValue{100.0};
|
||||
// 加减速距离
|
||||
double AccDecDist{45.0};
|
||||
double xAxisVel{20.0};
|
||||
double yAxisVel{100.0};
|
||||
};
|
||||
|
||||
#endif // SSCANCODE_H
|
||||
Reference in New Issue
Block a user