-
Notifications
You must be signed in to change notification settings - Fork 120
/
Configuration.h
132 lines (97 loc) · 4.61 KB
/
Configuration.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/****************************************************************************************************
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"
#define VERSION "1.09"
#define DATE "2015-04-21"
#define AUTHORS "reprappro, dc42, zpl"
// Comment out the following line if you don't want to build the firmware with Flash save support
#define FLASH_SAVE_ENABLED
// 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...
#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
#define DEFAULT_IDLE_CURRENT_FACTOR (0.3) // Proportion of normal motor current that we use for idle hold
// 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
#define STANDBY_INTERRUPT_RATE 2.0e-4 // Seconds
#define NUMBER_OF_PROBE_POINTS 5 // Maximum number of probe points
#define Z_DIVE 5.0 // Height from which to probe the bed (mm)
#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
#define SHORT_STRING_LENGTH 40
#define FILENAME_LENGTH 100
#define GCODE_REPLY_LENGTH 2048
// Print estimation defaults
#define NOZZLE_DIAMETER 0.5 // Thickness of the nozzle
#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 WEB_DEBUG_TRUE 9
#define WEB_DEBUG_FALSE 8
#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