Added parameters for motor config.
This commit is contained in:
15
src/main.cpp
15
src/main.cpp
@@ -59,9 +59,18 @@ int g_iPenState = g_iPenUpPos;
|
||||
uint32_t g_uiNodeCount = 0;
|
||||
unsigned int g_uiLayer = 0;
|
||||
boolean g_bPrgButtonState = 0;
|
||||
float fROT_STEP_CORRECTION = 16.0 / rotMicrostep; // devide EBB-Coordinates by this factor to get EGGduino-Steps
|
||||
float fPEN_STEP_CORRECTION = 16.0 / penMicrostep; // devide EBB-Coordinates by this factor to get EGGduino-Steps
|
||||
boolean g_bMotorsEnabled = 0;
|
||||
int g_iRotDirPin = kDefaultRotDirPin;
|
||||
int g_iRotEnablePin = kDefaultRotEnablePin;
|
||||
int g_iRotStepPin = kDefaultRotStepPin;
|
||||
int g_iPenStepPin = kDefaultPenStepPin;
|
||||
int g_iPenDirPin = kDefaultPenDirPin;
|
||||
int g_iPenEnablePin = kDefaultPenEnablePin;
|
||||
int g_iServoPin = kDefaultServoPin;
|
||||
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
|
||||
|
||||
// Stepper Test
|
||||
#ifdef TEST
|
||||
@@ -75,9 +84,9 @@ void setup()
|
||||
Serial.begin(115200);
|
||||
Serial.println("Starting...");
|
||||
Log("Starting...");
|
||||
startWebInterface();
|
||||
makeComInterface();
|
||||
initHardware();
|
||||
startWebInterface();
|
||||
}
|
||||
|
||||
uint8_t g_uiState = 0;
|
||||
|
||||
Reference in New Issue
Block a user