Added max accl speed of stepper to configuration.
This commit is contained in:
@@ -350,6 +350,7 @@ ConfigParameter configParameters[] = {
|
||||
{"int", "penEnablePin", &g_iPenEnablePin, "Pen Stepper Enable Pin", kDefaultPenEnablePin, "", false},
|
||||
{"int", "rotMicrostep", &g_iRotMicrostep, "Rotational Stepper Microsteps", kDefaultRotMicrostep, "", false},
|
||||
{"int", "penMicrostep", &g_iPenMicrostep, "Pen Stepper Microsteps", kDefaultPenMicrostep, "", false},
|
||||
{"int", "iMaxAcclSpeed", &g_iMaxAcclSpeed, "max. Stepper acceleration speed", 10000, "", false},
|
||||
{"int", "servoPin", &g_iServoPin, "Servo Pin", kDefaultServoPin, "", false},
|
||||
{"text", "Name", &g_sHostname, "Name", 0, "EggDuino", false},
|
||||
{"text", "wifiSsid", &g_sWifiSsid, "WLAN SSID", 0, "", false},
|
||||
|
||||
@@ -87,7 +87,7 @@ void initHardware()
|
||||
|
||||
g_pStepperRotate->setDirectionPin(g_iRotDirPin);
|
||||
g_pStepperRotate->setEnablePin(g_iRotEnablePin);
|
||||
g_pStepperRotate->setAcceleration(10000);
|
||||
g_pStepperRotate->setAcceleration(g_iMaxAcclSpeed);
|
||||
g_pStepperRotate->setAutoEnable(false);
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ void initHardware()
|
||||
// penMotor.setAcceleration(10000.0);
|
||||
g_pStepperPen->setDirectionPin(g_iPenDirPin);
|
||||
g_pStepperPen->setEnablePin(g_iPenEnablePin);
|
||||
g_pStepperPen->setAcceleration(10000);
|
||||
g_pStepperPen->setAcceleration(g_iMaxAcclSpeed);
|
||||
g_pStepperPen->setAutoEnable(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -82,6 +82,7 @@ int g_iRotMicrostep = kDefaultRotMicrostep;
|
||||
int g_iPenMicrostep = kDefaultPenMicrostep;
|
||||
float fROT_STEP_CORRECTION = 16.0 / kDefaultRotMicrostep; // devide EBB-Coordinates by this factor to get EGGduino-Steps
|
||||
float fPEN_STEP_CORRECTION = 16.0 / kDefaultPenMicrostep; // devide EBB-Coordinates by this factor to get EGGduino-Steps
|
||||
int g_iMaxAcclSpeed = 10000;
|
||||
String g_sHostname = "EggDuino";
|
||||
String g_sWifiSsid = "";
|
||||
String g_sWifiPassword = "";
|
||||
|
||||
Reference in New Issue
Block a user