add codes.
This commit is contained in:
parent
b03cf0c257
commit
64bd8799fb
@ -170,12 +170,12 @@ void Acceleration::Init() {
|
||||
}
|
||||
std::shared_ptr<VibrationData> ptr = std::dynamic_pointer_cast<VibrationData>(base_ptr);
|
||||
if (ptr->base_config_[channel - 1].channel_type != kVibAcc) {
|
||||
qDebug() << " channel type changes";
|
||||
qDebug() << "[Acceleration::Init] channel type changes";
|
||||
return;
|
||||
}
|
||||
std::shared_ptr<VariableBase> variable_base = ptr->GetChannelPtr(channel);
|
||||
if (variable_base == nullptr) {
|
||||
qDebug() << "no channel ptr";
|
||||
qDebug() << "[Acceleration::Init] no channel ptr";
|
||||
return;
|
||||
}
|
||||
std::shared_ptr<AccVelVariable> variable_ptr = std::dynamic_pointer_cast<AccVelVariable>(variable_base);
|
||||
|
@ -31,12 +31,6 @@ class Acceleration : public QWidget {
|
||||
private:
|
||||
Ui::Acceleration *ui;
|
||||
|
||||
// Filter filter[3];
|
||||
// Dealy delay;
|
||||
// Variables variables[4];
|
||||
// Alert_Variables alert_variables;
|
||||
|
||||
// void readJsonFile(const QString &filePath);
|
||||
void Init();
|
||||
};
|
||||
|
||||
|
@ -83,17 +83,17 @@ void Radial::on_checkBox_smax_ampl_toggled(bool checked) {
|
||||
void Radial::Init() {
|
||||
std::shared_ptr<CardBase> base_ptr = ConfigMgr::Instance()->GetSlotPtr(slot_no);
|
||||
if (base_ptr == nullptr) {
|
||||
qCritical() << "[Velocity::Init] should not be here";
|
||||
qCritical() << "[Radial::Init] should not be here";
|
||||
return;
|
||||
}
|
||||
std::shared_ptr<VibrationData> ptr = std::dynamic_pointer_cast<VibrationData>(base_ptr);
|
||||
if (ptr->base_config_[channel - 1].channel_type != kVibRadial) {
|
||||
qDebug() << " channel type changes";
|
||||
qDebug() << "[Radial::Init] channel type changes";
|
||||
return;
|
||||
}
|
||||
std::shared_ptr<VariableBase> variable_base = ptr->GetChannelPtr(channel);
|
||||
if (variable_base == nullptr) {
|
||||
qDebug() << "no channel ptr";
|
||||
qDebug() << "[Radial::Init] no channel ptr";
|
||||
return;
|
||||
}
|
||||
std::shared_ptr<RadialVariable> variable_ptr = std::dynamic_pointer_cast<RadialVariable>(variable_base);
|
||||
|
@ -28,11 +28,6 @@ class Radial : public QWidget {
|
||||
private:
|
||||
Ui::Radial_vibration *ui;
|
||||
|
||||
// Filter filter[3];
|
||||
// Dealy delay;
|
||||
// Variables variables[6];
|
||||
// Alert_Variables alert_variables;
|
||||
// void readJsonFile(const QString &filePath);
|
||||
void Init();
|
||||
};
|
||||
|
||||
|
@ -126,12 +126,12 @@ void Velocity::Init() {
|
||||
}
|
||||
std::shared_ptr<VibrationData> ptr = std::dynamic_pointer_cast<VibrationData>(base_ptr);
|
||||
if (ptr->base_config_[channel - 1].channel_type != kVibVelocity) {
|
||||
qDebug() << " channel type changes";
|
||||
qDebug() << "[Velocity::Init] channel type changes";
|
||||
return;
|
||||
}
|
||||
std::shared_ptr<VariableBase> variable_base = ptr->GetChannelPtr(channel);
|
||||
if (variable_base == nullptr) {
|
||||
qDebug() << "no channel ptr";
|
||||
qDebug() << "[Velocity::Init] no channel ptr";
|
||||
return;
|
||||
}
|
||||
std::shared_ptr<AccVelVariable> variable_ptr = std::dynamic_pointer_cast<AccVelVariable>(variable_base);
|
||||
|
@ -28,12 +28,6 @@ class Velocity : public QWidget {
|
||||
private:
|
||||
Ui::Velocity *ui;
|
||||
|
||||
// Filter filter[3];
|
||||
// Dealy delay;
|
||||
// Variables variables[4];
|
||||
// Alert_Variables alert_variables;
|
||||
|
||||
// void readJsonFile(const QString &filePath);
|
||||
void Init();
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user