This commit is contained in:
Chenwenxuan
2024-03-06 14:54:30 +08:00
commit edac2715f0
1525 changed files with 809982 additions and 0 deletions

View 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