Switch zu 1/16 Mikrosteps weil Hier beim beschauningen keine schritte verloren gehe. Wichtig nur bei 15000 steps/s^2 beschleunigung.
Beschleunigung in 500 schritten
This commit is contained in:
parent
1a43c4702c
commit
b138a7119d
2 changed files with 8 additions and 8 deletions
|
|
@ -16,7 +16,7 @@ FastAccelStepper *stepper = NULL;
|
||||||
// ################ Variabeln ################
|
// ################ Variabeln ################
|
||||||
const uint32_t MAX_SPEED_HZ = 106000;
|
const uint32_t MAX_SPEED_HZ = 106000;
|
||||||
const int32_t COLDTEMP_C = 70;
|
const int32_t COLDTEMP_C = 70;
|
||||||
const int32_t MIKROSTEPS = 1600;
|
const int32_t MIKROSTEPS = 3200;
|
||||||
|
|
||||||
bool clickPlus = 0;
|
bool clickPlus = 0;
|
||||||
bool clickMinus = 0;
|
bool clickMinus = 0;
|
||||||
|
|
@ -359,15 +359,15 @@ if (settings.editMaxTemp) {
|
||||||
if (settings.editAcc) {
|
if (settings.editAcc) {
|
||||||
// PLUS: Erhöhen in 1000er-Schritten bis max 20.000
|
// PLUS: Erhöhen in 1000er-Schritten bis max 20.000
|
||||||
if (clickPlus) {
|
if (clickPlus) {
|
||||||
if (settings.accelRate <= 19000) {
|
if (settings.accelRate <= 29000) {
|
||||||
settings.accelRate += 1000;
|
settings.accelRate += 500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MINUS: Verringern in 1000er-Schritten bis min 1.000 (niemals 0!)
|
// MINUS: Verringern in 1000er-Schritten bis min 1.000 (niemals 0!)
|
||||||
if (clickMinus) {
|
if (clickMinus) {
|
||||||
if (settings.accelRate >= 2000) {
|
if (settings.accelRate >= 1000) {
|
||||||
settings.accelRate -= 1000;
|
settings.accelRate -= 500;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
6
types.h
6
types.h
|
|
@ -31,7 +31,7 @@ struct settingsALT{
|
||||||
int16_t maxTemp = 100; //in °C
|
int16_t maxTemp = 100; //in °C
|
||||||
int16_t coldTemp = 0;
|
int16_t coldTemp = 0;
|
||||||
bool editAcc = false;
|
bool editAcc = false;
|
||||||
int32_t accelRate = 2000; // einheit
|
int32_t accelRate = 1500; // einheit
|
||||||
};
|
};
|
||||||
|
|
||||||
enum TimeEditStep {
|
enum TimeEditStep {
|
||||||
|
|
@ -57,8 +57,8 @@ struct SystemSettings {
|
||||||
int16_t maxTemp = 100; //in °C
|
int16_t maxTemp = 100; //in °C
|
||||||
int16_t coldTemp = 0;
|
int16_t coldTemp = 0;
|
||||||
bool editAcc = false;
|
bool editAcc = false;
|
||||||
int32_t accelRate = 20000;
|
int32_t accelRate = 15000;
|
||||||
int32_t autoSpeed = 100;
|
int32_t autoSpeed = 700;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue