cleaned up settings.h
This commit is contained in:
parent
5eddbabcd3
commit
23462de85a
13
settings.c
13
settings.c
@ -39,6 +39,19 @@ typedef struct {
|
|||||||
double mm_per_arc_segment;
|
double mm_per_arc_segment;
|
||||||
} settings_v1_t;
|
} settings_v1_t;
|
||||||
|
|
||||||
|
// Default settings (used when resetting eeprom-settings)
|
||||||
|
#define MICROSTEPS 8
|
||||||
|
#define DEFAULT_X_STEPS_PER_MM (94.488188976378*MICROSTEPS)
|
||||||
|
#define DEFAULT_Y_STEPS_PER_MM (94.488188976378*MICROSTEPS)
|
||||||
|
#define DEFAULT_Z_STEPS_PER_MM (94.488188976378*MICROSTEPS)
|
||||||
|
#define DEFAULT_STEP_PULSE_MICROSECONDS 30
|
||||||
|
#define DEFAULT_MM_PER_ARC_SEGMENT 0.1
|
||||||
|
#define DEFAULT_RAPID_FEEDRATE 480.0 // in millimeters per minute
|
||||||
|
#define DEFAULT_FEEDRATE 480.0
|
||||||
|
#define DEFAULT_ACCELERATION (DEFAULT_FEEDRATE/100.0)
|
||||||
|
#define DEFAULT_MAX_JERK 50.0
|
||||||
|
#define DEFAULT_STEPPING_INVERT_MASK 0
|
||||||
|
|
||||||
void settings_reset() {
|
void settings_reset() {
|
||||||
settings.steps_per_mm[X_AXIS] = DEFAULT_X_STEPS_PER_MM;
|
settings.steps_per_mm[X_AXIS] = DEFAULT_X_STEPS_PER_MM;
|
||||||
settings.steps_per_mm[Y_AXIS] = DEFAULT_Y_STEPS_PER_MM;
|
settings.steps_per_mm[Y_AXIS] = DEFAULT_Y_STEPS_PER_MM;
|
||||||
|
13
settings.h
13
settings.h
@ -54,17 +54,4 @@ void settings_dump();
|
|||||||
// A helper method to set new settings from command line
|
// A helper method to set new settings from command line
|
||||||
void settings_store_setting(int parameter, double value);
|
void settings_store_setting(int parameter, double value);
|
||||||
|
|
||||||
// Default settings (used when resetting eeprom-settings)
|
|
||||||
#define MICROSTEPS 8
|
|
||||||
#define DEFAULT_X_STEPS_PER_MM (94.488188976378*MICROSTEPS)
|
|
||||||
#define DEFAULT_Y_STEPS_PER_MM (94.488188976378*MICROSTEPS)
|
|
||||||
#define DEFAULT_Z_STEPS_PER_MM (94.488188976378*MICROSTEPS)
|
|
||||||
#define DEFAULT_STEP_PULSE_MICROSECONDS 30
|
|
||||||
#define DEFAULT_MM_PER_ARC_SEGMENT 0.1
|
|
||||||
#define DEFAULT_RAPID_FEEDRATE 480.0 // in millimeters per minute
|
|
||||||
#define DEFAULT_FEEDRATE 480.0
|
|
||||||
#define DEFAULT_ACCELERATION (DEFAULT_FEEDRATE/100.0)
|
|
||||||
#define DEFAULT_MAX_JERK 50.0
|
|
||||||
#define DEFAULT_STEPPING_INVERT_MASK 0
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user