Skip to content

Commit cbe832e

Browse files
Merge pull request #85 from gabrielburnworth/master
v1.14
2 parents 3e37984 + 4bafc0c commit cbe832e

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

src/Config.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,26 +80,26 @@ const long MOVEMENT_INVERT_MOTOR_Y_DEFAULT = 0;
8080
const long MOVEMENT_INVERT_MOTOR_Z_DEFAULT = 0;
8181

8282
const long MOVEMENT_SECONDARY_MOTOR_X_DEFAULT = 1;
83-
const long MOVEMENT_SECONDARY_MOTOR_INVERT_X_DEFAULT = 0;
83+
const long MOVEMENT_SECONDARY_MOTOR_INVERT_X_DEFAULT = 1;
8484

8585
const long MOVEMENT_HOME_UP_X_DEFAULT = 0;
8686
const long MOVEMENT_HOME_UP_Y_DEFAULT = 0;
8787
const long MOVEMENT_HOME_UP_Z_DEFAULT = 1;
8888

8989
// Number of steps used for acceleration or deceleration
90-
const long MOVEMENT_STEPS_ACC_DEC_X_DEFAULT = 500;
91-
const long MOVEMENT_STEPS_ACC_DEC_Y_DEFAULT = 500;
92-
const long MOVEMENT_STEPS_ACC_DEC_Z_DEFAULT = 500;
90+
const long MOVEMENT_STEPS_ACC_DEC_X_DEFAULT = 300;
91+
const long MOVEMENT_STEPS_ACC_DEC_Y_DEFAULT = 300;
92+
const long MOVEMENT_STEPS_ACC_DEC_Z_DEFAULT = 300;
9393

9494
// Minimum speed in steps per second
9595
const long MOVEMENT_MIN_SPD_X_DEFAULT = 50;
9696
const long MOVEMENT_MIN_SPD_Y_DEFAULT = 50;
9797
const long MOVEMENT_MIN_SPD_Z_DEFAULT = 50;
9898

9999
// Maxumim speed in steps per second
100-
const long MOVEMENT_MAX_SPD_X_DEFAULT = 800;
101-
const long MOVEMENT_MAX_SPD_Y_DEFAULT = 800;
102-
const long MOVEMENT_MAX_SPD_Z_DEFAULT = 800;
100+
const long MOVEMENT_MAX_SPD_X_DEFAULT = 400;
101+
const long MOVEMENT_MAX_SPD_Y_DEFAULT = 400;
102+
const long MOVEMENT_MAX_SPD_Z_DEFAULT = 400;
103103

104104
// Stop at the home position or continue to other size of axis
105105
const long MOVEMENT_STOP_AT_HOME_X_DEFAULT = 0;
@@ -124,20 +124,20 @@ const long ENCODER_TYPE_Y_DEFAULT = 0;
124124
const long ENCODER_TYPE_Z_DEFAULT = 0;
125125

126126
// Position = encoder position * scaling / 100
127-
const long ENCODER_SCALING_X_DEFAULT = 100;
128-
const long ENCODER_SCALING_Y_DEFAULT = 100;
129-
const long ENCODER_SCALING_Z_DEFAULT = 100;
127+
const long ENCODER_SCALING_X_DEFAULT = 56;
128+
const long ENCODER_SCALING_Y_DEFAULT = 56;
129+
const long ENCODER_SCALING_Z_DEFAULT = 56;
130130

131131
// Number of steps missed before motor is seen as not moving
132-
const long ENCODER_MISSED_STEPS_MAX_X_DEFAULT = 10;
133-
const long ENCODER_MISSED_STEPS_MAX_Y_DEFAULT = 10;
134-
const long ENCODER_MISSED_STEPS_MAX_Z_DEFAULT = 10;
132+
const long ENCODER_MISSED_STEPS_MAX_X_DEFAULT = 5;
133+
const long ENCODER_MISSED_STEPS_MAX_Y_DEFAULT = 5;
134+
const long ENCODER_MISSED_STEPS_MAX_Z_DEFAULT = 5;
135135

136136
// How much a good step is substracted from the missed step total (1-99)
137137
// 10 means it ignores 10 steps in 100. This is normal because of jerkiness while moving
138-
const long ENCODER_MISSED_STEPS_DECAY_X_DEFAULT = 10;
139-
const long ENCODER_MISSED_STEPS_DECAY_Y_DEFAULT = 10;
140-
const long ENCODER_MISSED_STEPS_DECAY_Z_DEFAULT = 10;
138+
const long ENCODER_MISSED_STEPS_DECAY_X_DEFAULT = 5;
139+
const long ENCODER_MISSED_STEPS_DECAY_Y_DEFAULT = 5;
140+
const long ENCODER_MISSED_STEPS_DECAY_Z_DEFAULT = 5;
141141

142142
// Use the encoder for positioning
143143
const long ENCODER_USE_FOR_POS_X_DEFAULT = 0;
@@ -177,6 +177,6 @@ const long PIN_GUARD_5_ACTIVE_STATE_DEFAULT = 1;
177177

178178
const long STATUS_GENERAL_DEFAULT = 0;
179179

180-
const char SOFTWARE_VERSION[] = "GENESIS.V.01.13.EXPERIMENTAL\0";
180+
const char SOFTWARE_VERSION[] = "GENESIS.V.01.14.EXPERIMENTAL\0";
181181

182182
#endif /* CONFIG_H_ */

src/StepperControl.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,8 @@ int StepperControl::calibrateAxis(int axis)
828828
Serial.print(" ");
829829
Serial.print("V");
830830
Serial.print(paramValueInt);
831-
Serial.print("\r\n");
831+
//Serial.print("\r\n");
832+
CurrentState::getInstance()->printQAndNewLine();
832833
}
833834

834835
// Store the status of the system
@@ -935,7 +936,8 @@ int StepperControl::calibrateAxis(int axis)
935936
Serial.print(" ");
936937
Serial.print("V");
937938
Serial.print(stepsCount);
938-
Serial.print("\r\n");
939+
//Serial.print("\r\n");
940+
CurrentState::getInstance()->printQAndNewLine();
939941
}
940942

941943
*axisStatus = COMM_REPORT_MOVE_STATUS_STOP_MOTOR;

0 commit comments

Comments
 (0)