Skip to content

Commit

Permalink
Merge pull request #85 from gabrielburnworth/master
Browse files Browse the repository at this point in the history
v1.14
  • Loading branch information
gabrielburnworth authored Jun 19, 2017
2 parents 3e37984 + 4bafc0c commit cbe832e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
34 changes: 17 additions & 17 deletions src/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,26 +80,26 @@ const long MOVEMENT_INVERT_MOTOR_Y_DEFAULT = 0;
const long MOVEMENT_INVERT_MOTOR_Z_DEFAULT = 0;

const long MOVEMENT_SECONDARY_MOTOR_X_DEFAULT = 1;
const long MOVEMENT_SECONDARY_MOTOR_INVERT_X_DEFAULT = 0;
const long MOVEMENT_SECONDARY_MOTOR_INVERT_X_DEFAULT = 1;

const long MOVEMENT_HOME_UP_X_DEFAULT = 0;
const long MOVEMENT_HOME_UP_Y_DEFAULT = 0;
const long MOVEMENT_HOME_UP_Z_DEFAULT = 1;

// Number of steps used for acceleration or deceleration
const long MOVEMENT_STEPS_ACC_DEC_X_DEFAULT = 500;
const long MOVEMENT_STEPS_ACC_DEC_Y_DEFAULT = 500;
const long MOVEMENT_STEPS_ACC_DEC_Z_DEFAULT = 500;
const long MOVEMENT_STEPS_ACC_DEC_X_DEFAULT = 300;
const long MOVEMENT_STEPS_ACC_DEC_Y_DEFAULT = 300;
const long MOVEMENT_STEPS_ACC_DEC_Z_DEFAULT = 300;

// Minimum speed in steps per second
const long MOVEMENT_MIN_SPD_X_DEFAULT = 50;
const long MOVEMENT_MIN_SPD_Y_DEFAULT = 50;
const long MOVEMENT_MIN_SPD_Z_DEFAULT = 50;

// Maxumim speed in steps per second
const long MOVEMENT_MAX_SPD_X_DEFAULT = 800;
const long MOVEMENT_MAX_SPD_Y_DEFAULT = 800;
const long MOVEMENT_MAX_SPD_Z_DEFAULT = 800;
const long MOVEMENT_MAX_SPD_X_DEFAULT = 400;
const long MOVEMENT_MAX_SPD_Y_DEFAULT = 400;
const long MOVEMENT_MAX_SPD_Z_DEFAULT = 400;

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

// Position = encoder position * scaling / 100
const long ENCODER_SCALING_X_DEFAULT = 100;
const long ENCODER_SCALING_Y_DEFAULT = 100;
const long ENCODER_SCALING_Z_DEFAULT = 100;
const long ENCODER_SCALING_X_DEFAULT = 56;
const long ENCODER_SCALING_Y_DEFAULT = 56;
const long ENCODER_SCALING_Z_DEFAULT = 56;

// Number of steps missed before motor is seen as not moving
const long ENCODER_MISSED_STEPS_MAX_X_DEFAULT = 10;
const long ENCODER_MISSED_STEPS_MAX_Y_DEFAULT = 10;
const long ENCODER_MISSED_STEPS_MAX_Z_DEFAULT = 10;
const long ENCODER_MISSED_STEPS_MAX_X_DEFAULT = 5;
const long ENCODER_MISSED_STEPS_MAX_Y_DEFAULT = 5;
const long ENCODER_MISSED_STEPS_MAX_Z_DEFAULT = 5;

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

// Use the encoder for positioning
const long ENCODER_USE_FOR_POS_X_DEFAULT = 0;
Expand Down Expand Up @@ -177,6 +177,6 @@ const long PIN_GUARD_5_ACTIVE_STATE_DEFAULT = 1;

const long STATUS_GENERAL_DEFAULT = 0;

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

#endif /* CONFIG_H_ */
6 changes: 4 additions & 2 deletions src/StepperControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,8 @@ int StepperControl::calibrateAxis(int axis)
Serial.print(" ");
Serial.print("V");
Serial.print(paramValueInt);
Serial.print("\r\n");
//Serial.print("\r\n");
CurrentState::getInstance()->printQAndNewLine();
}

// Store the status of the system
Expand Down Expand Up @@ -935,7 +936,8 @@ int StepperControl::calibrateAxis(int axis)
Serial.print(" ");
Serial.print("V");
Serial.print(stepsCount);
Serial.print("\r\n");
//Serial.print("\r\n");
CurrentState::getInstance()->printQAndNewLine();
}

*axisStatus = COMM_REPORT_MOVE_STATUS_STOP_MOTOR;
Expand Down

0 comments on commit cbe832e

Please sign in to comment.