Changeset View
Changeset View
Standalone View
Standalone View
src/core/atcore.cpp
Show First 20 Lines • Show All 606 Lines • ▼ Show 20 Line(s) | 606 | { | |||
---|---|---|---|---|---|
607 | pushCommand(GCode::toCommand(GCode::M220, QString::number(speed))); | 607 | pushCommand(GCode::toCommand(GCode::M220, QString::number(speed))); | ||
608 | } | 608 | } | ||
609 | 609 | | |||
610 | void AtCore::setFlowRate(uint speed) | 610 | void AtCore::setFlowRate(uint speed) | ||
611 | { | 611 | { | ||
612 | pushCommand(GCode::toCommand(GCode::M221, QString::number(speed))); | 612 | pushCommand(GCode::toCommand(GCode::M221, QString::number(speed))); | ||
613 | } | 613 | } | ||
614 | 614 | | |||
615 | void AtCore::move(AtCore::AXES axis, int arg) | 615 | void AtCore::move(AtCore::AXES axis, double arg) | ||
616 | { | 616 | { | ||
617 | const auto axisAsString = QMetaEnum::fromType<AtCore::AXES>().valueToKey(axis); | 617 | const auto axisAsString = QMetaEnum::fromType<AtCore::AXES>().valueToKey(axis); | ||
618 | move(QLatin1Char(axisAsString[0]), arg); | 618 | move(QLatin1Char(axisAsString[0]), arg); | ||
619 | } | 619 | } | ||
620 | 620 | | |||
621 | void AtCore::move(QLatin1Char axis, int arg) | 621 | void AtCore::move(QLatin1Char axis, double arg) | ||
622 | { | 622 | { | ||
623 | pushCommand(GCode::toCommand(GCode::G1, QStringLiteral("%1 %2").arg(axis).arg(QString::number(arg)))); | 623 | pushCommand(GCode::toCommand(GCode::G1, QStringLiteral("%1 %2").arg(axis).arg(QString::number(arg, 'g', 3)))); | ||
laysrodrigues: What does this mean?
Can you clarify for me? | |||||
624 | } | 624 | } | ||
625 | 625 | | |||
626 | int AtCore::extruderCount() const | 626 | int AtCore::extruderCount() const | ||
627 | { | 627 | { | ||
628 | return d->extruderCount; | 628 | return d->extruderCount; | ||
629 | } | 629 | } | ||
630 | 630 | | |||
631 | void AtCore::setExtruderCount(int newCount) | 631 | void AtCore::setExtruderCount(int newCount) | ||
▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines |
What does this mean?
Can you clarify for me?