Error compiling Firmware: 'temptable' was not declared in this scope January 07, 2011 06:32AM |
Registered: 14 years ago Posts: 65 |
#define DEFAULTS MENDEL_GEN3_DEFAULTS
In file included from FiveD_GCode_Interpreter.cpp:12: /Temperature.h: In function 'void setupThermistors()': Temperature.h:327: error: 'temptable' was not declared in this scope Temperature.h:330: error: 'bedtemptable' was not declared in this scopeCan't figure out what went wrong...
Re: Error compiling Firmware: 'temptable' was not declared in this scope January 07, 2011 04:00PM |
Registered: 15 years ago Posts: 458 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope January 08, 2011 06:27AM |
Registered: 14 years ago Posts: 65 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope January 08, 2011 07:43AM |
Registered: 15 years ago Posts: 1,092 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope January 08, 2011 03:28PM |
Registered: 14 years ago Posts: 65 |
// HINT: To decide which Thermistor/s are used, you no longer need to change this file! // please just change the two definitions in your configuration.h file that are: // TEMP_SENSOR ( choose what to set it to based on the options in features.h ) // BED_TEMP_SENSOR ( as per above, or leave it unset, and it will automatically be set the same as TEMP_SENSOR )
#define DEFAULTS MENDEL_GEN3_DEFAULTS ... #if DEFAULTS == MENDEL_GEN3_DEFAULTS ... #define TEMP_SENSOR TEMP_SENSOR_RRRF100K_THERMISTOR // RRRF 100k thermistor is typical for mendel, yes?If it is not enough?
Re: Error compiling Firmware: 'temptable' was not declared in this scope January 19, 2011 05:54PM |
neutrinus
Re: Error compiling Firmware: 'temptable' was not declared in this scope February 08, 2011 08:07AM |
Re: Error compiling Firmware: 'temptable' was not declared in this scope February 11, 2011 08:48PM |
Registered: 14 years ago Posts: 1 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope February 12, 2011 02:09PM |
// normal Mendel uses neither a heated bed, nor an Internal extruder PID code: //#define TEMP_SENSOR TEMP_SENSOR_RRRF10K_THERMISTOR // Temperature measurement ( BED or Internal Extruder code. IF you...
// put("X-TEMP_SENSOR:"); put(TEMP_SENSOR); putWs(); // put("X-BED_TEMP_SENSOR:"); put(BED_TEMP_SENSOR); putWs();
Re: Error compiling Firmware: 'temptable' was not declared in this scope February 12, 2011 03:57PM |
Registered: 14 years ago Posts: 1,780 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 07, 2011 10:01PM |
Registered: 14 years ago Posts: 55 |
#if TEMP_SENSOR == TEMP_SENSOR_RRRF100K_THERMISTOR #define temptable = &d_temptable[0]; #endif #if BED_TEMP_SENSOR == TEMP_SENSOR_RRRF100K_THERMISTOR #define bedtemptable = &d_temptable[0]; #endif
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 08, 2011 03:47AM |
Registered: 14 years ago Posts: 91 |
#if ( EXTRUDER_CONTROLLER == EXTRUDER_CONTROLLER_INTERNAL ) || ( EXTRUDER_CONTROLLER == EXTRUDER_CONTROLLER_DC ) Pair *temptable; // a pointer to the first "Pair" is equivalient to a "Table" type, but conveniently modifiable. #endif // ... And this is the heated bed thermistor (if any) #if HEATED_BED == HEATED_BED_ON Pair *bedtemptable; #endifOn default gen3, EXTRUDER_CONTROLLER = EXTRUDER_CONTROLLER_RS485 and so the above declarations are not included, hence the error when these variables are set later in the file.
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 08, 2011 09:25AM |
Registered: 14 years ago Posts: 55 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 23, 2011 03:51AM |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 23, 2011 06:04AM |
Registered: 14 years ago Posts: 1,352 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 24, 2011 06:22AM |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 26, 2011 12:24AM |
Registered: 14 years ago Posts: 11 |
void setupThermistors() { Pair *temptable; Pair *bedtemptable; #if TEMP_SENSOR == TEMP_JAYCAR_NTC_125DEG_10K_THERMISTOR temptable = &a_temptable[0]; #endif #if BED_TEMP_SENSOR == TEMP_JAYCAR_NTC_125DEG_10K_THERMISTOR bedtemptable = &a_temptable[0]; #endif //continues......
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 26, 2011 04:20AM |
Registered: 14 years ago Posts: 91 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 26, 2011 08:19AM |
Registered: 14 years ago Posts: 11 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 26, 2011 10:56AM |
Registered: 14 years ago Posts: 1,780 |
// pre-select a typical setup from the below list // using typical pinouts and typical capabilities. see features.h for what typical setups we have available //#define DEFAULTS DARWIN_DEFAULTS #define DEFAULTS MENDEL_GEN3_DEFAULTS //#define DEFAULTS MENDEL_MEGA_DEFAULTS //#define DEFAULTS BATHPROTO_DEFAULTSIn Temperature.h, insert "#if EXTRUDER_CONTROLLER != EXTRUDER_CONTROLLER_RS485" near the beginning and #endif at the very end:
// The temperature control dead zone in deg C #define HALF_DEAD_ZONE 5 #if EXTRUDER_CONTROLLER != EXTRUDER_CONTROLLER_RS485 ... the rest of the text here #endifIn FiveD_Gcode_Interpreter, insert the same #if and #endif around the call to setupThermistors():
#if EXTRUDER_CONTROLLER != EXTRUDER_CONTROLLER_RS485 setupThermistors(); // map the correct thermistor table to the correct thermistor ( extruder or bed ) #endif
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 29, 2011 03:16AM |
Registered: 14 years ago Posts: 5 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 29, 2011 08:47AM |
Registered: 14 years ago Posts: 1,780 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 29, 2011 09:37PM |
Registered: 14 years ago Posts: 5 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 30, 2011 03:05AM |
Registered: 14 years ago Posts: 5 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 30, 2011 09:38AM |
Registered: 14 years ago Posts: 55 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 30, 2011 10:17AM |
Admin Registered: 17 years ago Posts: 14,039 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 30, 2011 02:28PM |
Registered: 14 years ago Posts: 1,780 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope March 30, 2011 09:54PM |
Registered: 14 years ago Posts: 5 |
Re: Error compiling Firmware: 'temptable' was not declared in this scope April 09, 2011 12:34PM |
Re: Error compiling Firmware: 'temptable' was not declared in this scope April 09, 2011 07:11PM |
Registered: 14 years ago Posts: 1,780 |