41 lines
848 B
C++
41 lines
848 B
C++
#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
|