
Added F (probing speed) and T (travel speed) parameters to M558 command Removed M210 command because home feed rates are defined in the homing files Increased UART interrupt priority to avoid dropping characters sent by PanelDue Bug fix: M558 P3 did not leave the Z probe control pin high Bug fix: in version 1.09j only, the move following a G92 E0 command was sometimes executed from an incorrect start point Fixed bugs with reads/writes from/to the SD card that spanned one or more whole sectors Updated to latest Atmel HSMCI driver
150 lines
5.4 KiB
C
150 lines
5.4 KiB
C
/****************************************************************************************************
|
|
|
|
RepRapFirmware - Configuration
|
|
|
|
This is where all machine-independent configuration and other definitions are set up. Nothing that
|
|
depends on any particular RepRap, RepRap component, or RepRap controller should go in here. Define
|
|
machine-dependent things in Platform.h
|
|
|
|
-----------------------------------------------------------------------------------------------------
|
|
|
|
Version 0.1
|
|
|
|
18 November 2012
|
|
|
|
Adrian Bowyer
|
|
RepRap Professional Ltd
|
|
http://reprappro.com
|
|
|
|
Licence: GPL
|
|
|
|
****************************************************************************************************/
|
|
|
|
#ifndef CONFIGURATION_H
|
|
#define CONFIGURATION_H
|
|
|
|
#define NAME "RepRapFirmware"
|
|
|
|
#ifndef VERSION
|
|
#define VERSION "1.09k-dc42"
|
|
#endif
|
|
|
|
#ifndef DATE
|
|
#define DATE "2015-09-20"
|
|
#endif
|
|
|
|
#define AUTHORS "reprappro, dc42, zpl, t3p3, dnewman"
|
|
|
|
#define FLASH_SAVE_ENABLED (1)
|
|
|
|
// Other firmware that we might switch to be compatible with.
|
|
|
|
enum Compatibility
|
|
{
|
|
me = 0,
|
|
reprapFirmware = 1,
|
|
marlin = 2,
|
|
teacup = 3,
|
|
sprinter = 4,
|
|
repetier = 5
|
|
};
|
|
|
|
// Some numbers...
|
|
|
|
const uint32_t MainBaudRate = 115200; // Communication speed of the USB if needed.
|
|
const uint32_t AuxBaudRate = 57600;
|
|
|
|
const unsigned int GcodeLength = 100; // Maximum length of a G Code string that we handle
|
|
const unsigned int MaxFilenameLength = 100; // Maximum length of a path + filename on the SD card
|
|
|
|
const float defaultIdleCurrentFactor = 0.3; // Proportion of normal motor current that we use for idle hold
|
|
const float defaultIdleTimeout = 30.0;
|
|
|
|
const float DefaultFeedRate = 3000; // The initial requested feed rate after resetting the printer
|
|
|
|
#define ABS_ZERO (-273.15) // Celsius
|
|
#define NEARLY_ABS_ZERO (-273) // Celsius
|
|
|
|
#define INCH_TO_MM (25.4)
|
|
|
|
#define HEAT_SAMPLE_TIME (0.5) // Seconds
|
|
#define HEAT_PWM_AVERAGE_TIME (5.0) // Seconds
|
|
|
|
#define TEMPERATURE_CLOSE_ENOUGH (2.5) // Celsius
|
|
#define TEMPERATURE_LOW_SO_DONT_CARE (40.0) // Celsius
|
|
#define HOT_ENOUGH_TO_EXTRUDE (160.0) // Celsius
|
|
#define HOT_ENOUGH_TO_RETRACT (90.0) // Celsius
|
|
#define TIME_TO_HOT (150.0) // Seconds
|
|
|
|
// If temperatures fall outside this range, something nasty has happened.
|
|
|
|
#define MAX_BAD_TEMPERATURE_COUNT 6
|
|
#define BAD_LOW_TEMPERATURE -10.0
|
|
#define BAD_HIGH_TEMPERATURE 300.0
|
|
|
|
const size_t MaxProbePoints = 16; // Maximum number of probe points
|
|
const size_t MaxDeltaCalibrationPoints = 16; // Must be <= MaxProbePoints, may be smaller to reduce matrix storage requirements. Preferably a power of 2.
|
|
|
|
const float DefaultZDive = 3.0; // Default height from which to probe the bed (mm)
|
|
const float DefaultProbeSpeed = 2.0; // Default Z probing speed
|
|
const float DefaultTravelSpeed = 100.0; // Default speed for travel to probe points
|
|
|
|
#define TRIANGLE_0 -0.001 // Slightly less than 0 for point-in-triangle tests
|
|
|
|
#define SILLY_Z_VALUE -9999.0
|
|
|
|
// String lengths
|
|
|
|
#define STRING_LENGTH 1024
|
|
const size_t MaxPasswordLength = 20;
|
|
const size_t MaxNameLength = 40;
|
|
const size_t MaxMessageLength = 40;
|
|
const size_t MaxGcodeReplyLength = 2048;
|
|
|
|
// Print estimation defaults
|
|
const float DefaultNozzleDiameter = 0.5; // Thickness of the nozzle
|
|
const float DefaultFilamentWidth = 1.75; // Width of the filament
|
|
|
|
#define MAX_LAYER_SAMPLES 5 // Number of layer samples (except for first layer)
|
|
#define ESTIMATION_MIN_FILAMENT_USAGE 0.025 // Minimum per cent for filament usage estimation
|
|
#define FIRST_LAYER_SPEED_FACTOR 0.25 // First layer speed compared to others (only for layer-based estimation)
|
|
|
|
// Webserver stuff
|
|
|
|
#define DEFAULT_PASSWORD "reprap"
|
|
#define DEFAULT_NAME "My RepRap 1"
|
|
#define INDEX_PAGE "reprap.htm"
|
|
#define FOUR04_FILE "html404.htm"
|
|
#define CONFIG_FILE "config.g" // The file that sets the machine's parameters
|
|
#define DEFAULT_FILE "default.g" // If the config file isn't found
|
|
#define HOME_X_G "homex.g"
|
|
#define HOME_Y_G "homey.g"
|
|
#define HOME_Z_G "homez.g"
|
|
#define HOME_ALL_G "homeall.g"
|
|
#define HOME_DELTA_G "homedelta.g"
|
|
#define SET_BED_EQUATION "bed.g"
|
|
#define PAUSE_G "pause.g"
|
|
#define RESUME_G "resume.g"
|
|
#define STOP_G "stop.g"
|
|
#define SLEEP_G "sleep.g"
|
|
|
|
#define LIST_SEPARATOR ':' // Lists in G Codes
|
|
#define FILE_LIST_SEPARATOR ',' // Put this between file names when listing them
|
|
#define FILE_LIST_BRACKET '"' // Put these round file names when listing them
|
|
|
|
#define LONG_TIME 300.0 // Seconds
|
|
|
|
#define EOF_STRING "<!-- **EoF** -->" // For HTML uploads
|
|
|
|
#define FLASH_LED 'F' // Type byte of a message that is to flash an LED; the next two bytes define
|
|
// the frequency and M/S ratio.
|
|
#define DISPLAY_MESSAGE 'L' // Type byte of a message that is to appear on a local display; the L is
|
|
// not displayed; \f and \n should be supported.
|
|
#define HOST_MESSAGE 'H' // Type byte of a message that is to be sent to the host via USB; the H is not sent.
|
|
#define WEB_MESSAGE 'W' // Type byte of message that is to be sent to the web
|
|
#define WEB_ERROR_MESSAGE 'E' // Type byte of message that is to be sent to the web - flags an error
|
|
#define BOTH_MESSAGE 'B' // Type byte of message that is to be sent to the web & host
|
|
#define BOTH_ERROR_MESSAGE 'A' // Type byte of message that is to be sent to the web & host - flags an error
|
|
#define DEBUG_MESSAGE 'D' // Type byte of debug message to send in blocking mode to USB
|
|
|
|
#endif
|