소스 검색

Merge pull request #4452 from thinkyhead/rc_fix_heaterstates_part_2

Additional heater-state output changes
Scott Lahteine 8 년 전
부모
커밋
db4d03bc81
24개의 변경된 파일18개의 추가작업 그리고 120개의 파일을 삭제
  1. 0
    4
      Marlin/Configuration.h
  2. 16
    30
      Marlin/Marlin_main.cpp
  3. 2
    2
      Marlin/SanityCheck.h
  4. 0
    4
      Marlin/example_configurations/Cartesio/Configuration.h
  5. 0
    4
      Marlin/example_configurations/Felix/Configuration.h
  6. 0
    4
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  7. 0
    4
      Marlin/example_configurations/Hephestos/Configuration.h
  8. 0
    4
      Marlin/example_configurations/Hephestos_2/Configuration.h
  9. 0
    4
      Marlin/example_configurations/K8200/Configuration.h
  10. 0
    4
      Marlin/example_configurations/K8400/Configuration.h
  11. 0
    4
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  12. 0
    4
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  13. 0
    4
      Marlin/example_configurations/RigidBot/Configuration.h
  14. 0
    4
      Marlin/example_configurations/SCARA/Configuration.h
  15. 0
    4
      Marlin/example_configurations/TAZ4/Configuration.h
  16. 0
    4
      Marlin/example_configurations/WITBOX/Configuration.h
  17. 0
    4
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  18. 0
    4
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  19. 0
    4
      Marlin/example_configurations/delta/generic/Configuration.h
  20. 0
    4
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  21. 0
    4
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  22. 0
    4
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  23. 0
    4
      Marlin/example_configurations/makibox/Configuration.h
  24. 0
    4
      Marlin/example_configurations/tvrrug/Round2/Configuration.h

+ 0
- 4
Marlin/Configuration.h 파일 보기

@@ -263,10 +263,6 @@
263 263
 #define HEATER_3_MAXTEMP 275
264 264
 #define BED_MAXTEMP 150
265 265
 
266
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
267
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
268
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
269
-
270 266
 //===========================================================================
271 267
 //============================= PID Settings ================================
272 268
 //===========================================================================

+ 16
- 30
Marlin/Marlin_main.cpp 파일 보기

@@ -4459,12 +4459,20 @@ inline void gcode_M104() {
4459 4459
       SERIAL_PROTOCOL_F(thermalManager.degHotend(target_extruder), 1);
4460 4460
       SERIAL_PROTOCOLPGM(" /");
4461 4461
       SERIAL_PROTOCOL_F(thermalManager.degTargetHotend(target_extruder), 1);
4462
+      #if ENABLED(SHOW_TEMP_ADC_VALUES)
4463
+        SERIAL_PROTOCOLPAIR(" (", thermalManager.current_temperature_raw[target_extruder] / OVERSAMPLENR);
4464
+        SERIAL_CHAR(')')
4465
+      #endif
4462 4466
     #endif
4463 4467
     #if HAS_TEMP_BED
4464 4468
       SERIAL_PROTOCOLPGM(" B:");
4465 4469
       SERIAL_PROTOCOL_F(thermalManager.degBed(), 1);
4466 4470
       SERIAL_PROTOCOLPGM(" /");
4467 4471
       SERIAL_PROTOCOL_F(thermalManager.degTargetBed(), 1);
4472
+      #if ENABLED(SHOW_TEMP_ADC_VALUES)
4473
+        SERIAL_PROTOCOLPAIR(" (", thermalManager.current_temperature_bed_raw / OVERSAMPLENR);
4474
+        SERIAL_CHAR(')')
4475
+      #endif
4468 4476
     #endif
4469 4477
     #if HOTENDS > 1
4470 4478
       HOTEND_LOOP() {
@@ -4473,47 +4481,25 @@ inline void gcode_M104() {
4473 4481
         SERIAL_PROTOCOL_F(thermalManager.degHotend(e), 1);
4474 4482
         SERIAL_PROTOCOLPGM(" /");
4475 4483
         SERIAL_PROTOCOL_F(thermalManager.degTargetHotend(e), 1);
4484
+        #if ENABLED(SHOW_TEMP_ADC_VALUES)
4485
+          SERIAL_PROTOCOLPAIR(" (", thermalManager.current_temperature_raw[e] / OVERSAMPLENR);
4486
+          SERIAL_CHAR(')')
4487
+        #endif
4476 4488
       }
4477 4489
     #endif
4490
+    SERIAL_PROTOCOLPGM(" @:");
4491
+    SERIAL_PROTOCOL(thermalManager.getHeaterPower(target_extruder));
4478 4492
     #if HAS_TEMP_BED
4479 4493
       SERIAL_PROTOCOLPGM(" B@:");
4480
-      #ifdef BED_WATTS
4481
-        SERIAL_PROTOCOL(((BED_WATTS) * thermalManager.getHeaterPower(-1)) / 127);
4482
-        SERIAL_PROTOCOLCHAR('W');
4483
-      #else
4484
-        SERIAL_PROTOCOL(thermalManager.getHeaterPower(-1));
4485
-      #endif
4486
-    #endif
4487
-    SERIAL_PROTOCOLPGM(" @:");
4488
-    #ifdef EXTRUDER_WATTS
4489
-      SERIAL_PROTOCOL(((EXTRUDER_WATTS) * thermalManager.getHeaterPower(target_extruder)) / 127);
4490
-      SERIAL_PROTOCOLCHAR('W');
4491
-    #else
4492
-      SERIAL_PROTOCOL(thermalManager.getHeaterPower(target_extruder));
4494
+      SERIAL_PROTOCOL(thermalManager.getHeaterPower(-1));
4493 4495
     #endif
4494 4496
     #if HOTENDS > 1
4495 4497
       HOTEND_LOOP() {
4496 4498
         SERIAL_PROTOCOLPAIR(" @", e);
4497 4499
         SERIAL_PROTOCOLCHAR(':');
4498
-        #ifdef EXTRUDER_WATTS
4499
-          SERIAL_PROTOCOL(((EXTRUDER_WATTS) * thermalManager.getHeaterPower(e)) / 127);
4500
-          SERIAL_PROTOCOLCHAR('W');
4501
-        #else
4502
-          SERIAL_PROTOCOL(thermalManager.getHeaterPower(e));
4503
-        #endif
4500
+        SERIAL_PROTOCOL(thermalManager.getHeaterPower(e));
4504 4501
       }
4505 4502
     #endif
4506
-    #if ENABLED(SHOW_TEMP_ADC_VALUES)
4507
-      #if HAS_TEMP_BED
4508
-        SERIAL_PROTOCOLPAIR("    ADC B:", thermalManager.current_temperature_bed_raw / OVERSAMPLENR);
4509
-      #endif
4510
-      HOTEND_LOOP() {
4511
-        SERIAL_PROTOCOLPAIR(" T", e);
4512
-        SERIAL_PROTOCOLCHAR(':');
4513
-        SERIAL_PROTOCOL(thermalManager.current_temperature_raw[e] / OVERSAMPLENR);
4514
-      }
4515
-    #endif
4516
-    SERIAL_EOL;
4517 4503
   }
4518 4504
 #endif
4519 4505
 

+ 2
- 2
Marlin/SanityCheck.h 파일 보기

@@ -698,8 +698,8 @@
698 698
   #error "EXTRUDER_OFFSET_[XY] is deprecated. Use HOTEND_OFFSET_[XY] instead."
699 699
 #elif defined(PID_PARAMS_PER_EXTRUDER)
700 700
   #error "PID_PARAMS_PER_EXTRUDER is deprecated. Use PID_PARAMS_PER_HOTEND instead."
701
-#elif defined(EXTRUDER_WATTS)
702
-  #error "EXTRUDER_WATTS is deprecated. Use HOTEND_WATTS instead."
701
+#elif defined(EXTRUDER_WATTS) || defined(BED_WATTS)
702
+  #error "EXTRUDER_WATTS and BED_WATTS are deprecated. Remove them from your configuration."
703 703
 #elif defined(SERVO_ENDSTOP_ANGLES)
704 704
   #error "SERVO_ENDSTOP_ANGLES is deprecated. Use Z_SERVO_ANGLES instead."
705 705
 #elif defined(X_ENDSTOP_SERVO_NR) || defined(Y_ENDSTOP_SERVO_NR)

+ 0
- 4
Marlin/example_configurations/Cartesio/Configuration.h 파일 보기

@@ -265,10 +265,6 @@
265 265
 #define HEATER_3_MAXTEMP 415
266 266
 #define BED_MAXTEMP 165
267 267
 
268
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
269
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
270
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
271
-
272 268
 //===========================================================================
273 269
 //============================= PID Settings ================================
274 270
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/Felix/Configuration.h 파일 보기

@@ -264,10 +264,6 @@
264 264
 #define HEATER_3_MAXTEMP 275
265 265
 #define BED_MAXTEMP 150
266 266
 
267
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
268
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
269
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
270
-
271 267
 //===========================================================================
272 268
 //============================= PID Settings ================================
273 269
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/Felix/DUAL/Configuration.h 파일 보기

@@ -264,10 +264,6 @@
264 264
 #define HEATER_3_MAXTEMP 275
265 265
 #define BED_MAXTEMP 150
266 266
 
267
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
268
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
269
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
270
-
271 267
 //===========================================================================
272 268
 //============================= PID Settings ================================
273 269
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/Hephestos/Configuration.h 파일 보기

@@ -267,10 +267,6 @@
267 267
 #define HEATER_3_MAXTEMP 260
268 268
 #define BED_MAXTEMP 150
269 269
 
270
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
271
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
272
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
273
-
274 270
 //===========================================================================
275 271
 //============================= PID Settings ================================
276 272
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/Hephestos_2/Configuration.h 파일 보기

@@ -263,10 +263,6 @@
263 263
 //#define HEATER_3_MAXTEMP 275
264 264
 //#define BED_MAXTEMP 150
265 265
 
266
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
267
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
268
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
269
-
270 266
 //===========================================================================
271 267
 //============================= PID Settings ================================
272 268
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/K8200/Configuration.h 파일 보기

@@ -271,10 +271,6 @@
271 271
 #define HEATER_3_MAXTEMP 275
272 272
 #define BED_MAXTEMP 150
273 273
 
274
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
275
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
276
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
277
-
278 274
 //===========================================================================
279 275
 //============================= PID Settings ================================
280 276
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/K8400/Configuration.h 파일 보기

@@ -264,10 +264,6 @@
264 264
 #define HEATER_3_MAXTEMP 275
265 265
 #define BED_MAXTEMP 150
266 266
 
267
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
268
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
269
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
270
-
271 267
 //===========================================================================
272 268
 //============================= PID Settings ================================
273 269
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/K8400/Dual-head/Configuration.h 파일 보기

@@ -264,10 +264,6 @@
264 264
 #define HEATER_3_MAXTEMP 275
265 265
 #define BED_MAXTEMP 150
266 266
 
267
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
268
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
269
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
270
-
271 267
 //===========================================================================
272 268
 //============================= PID Settings ================================
273 269
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h 파일 보기

@@ -264,10 +264,6 @@
264 264
 #define HEATER_3_MAXTEMP 275
265 265
 #define BED_MAXTEMP 150
266 266
 
267
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
268
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
269
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
270
-
271 267
 //===========================================================================
272 268
 //============================= PID Settings ================================
273 269
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/RigidBot/Configuration.h 파일 보기

@@ -267,10 +267,6 @@
267 267
 #define HEATER_3_MAXTEMP 275
268 268
 #define BED_MAXTEMP 150
269 269
 
270
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
271
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
272
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
273
-
274 270
 //===========================================================================
275 271
 //============================= PID Settings ================================
276 272
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/SCARA/Configuration.h 파일 보기

@@ -289,10 +289,6 @@
289 289
 #define HEATER_3_MAXTEMP 275
290 290
 #define BED_MAXTEMP 150
291 291
 
292
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
293
-#define HOTEND_WATTS (2*2/5.9)       // P=U^2/R
294
-#define BED_WATTS (5.45*5.45/2.2)    // P=U^2/R
295
-
296 292
 //===========================================================================
297 293
 //============================= PID Settings ================================
298 294
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/TAZ4/Configuration.h 파일 보기

@@ -264,10 +264,6 @@
264 264
 #define HEATER_3_MAXTEMP 250
265 265
 #define BED_MAXTEMP 150
266 266
 
267
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
268
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
269
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
270
-
271 267
 //===========================================================================
272 268
 //============================= PID Settings ================================
273 269
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/WITBOX/Configuration.h 파일 보기

@@ -266,10 +266,6 @@
266 266
 #define HEATER_3_MAXTEMP 260
267 267
 #define BED_MAXTEMP 150
268 268
 
269
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
270
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
271
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
272
-
273 269
 //===========================================================================
274 270
 //============================= PID Settings ================================
275 271
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/adafruit/ST7565/Configuration.h 파일 보기

@@ -264,10 +264,6 @@
264 264
 #define HEATER_3_MAXTEMP 275
265 265
 #define BED_MAXTEMP 150
266 266
 
267
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
268
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
269
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
270
-
271 267
 //===========================================================================
272 268
 //============================= PID Settings ================================
273 269
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/delta/biv2.5/Configuration.h 파일 보기

@@ -264,10 +264,6 @@
264 264
 #define HEATER_3_MAXTEMP 275
265 265
 #define BED_MAXTEMP 150
266 266
 
267
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
268
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
269
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
270
-
271 267
 //===========================================================================
272 268
 //============================= PID Settings ================================
273 269
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/delta/generic/Configuration.h 파일 보기

@@ -264,10 +264,6 @@
264 264
 #define HEATER_3_MAXTEMP 275
265 265
 #define BED_MAXTEMP 150
266 266
 
267
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
268
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
269
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
270
-
271 267
 //===========================================================================
272 268
 //============================= PID Settings ================================
273 269
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/delta/kossel_mini/Configuration.h 파일 보기

@@ -264,10 +264,6 @@
264 264
 #define HEATER_3_MAXTEMP 275
265 265
 #define BED_MAXTEMP 150
266 266
 
267
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
268
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
269
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
270
-
271 267
 //===========================================================================
272 268
 //============================= PID Settings ================================
273 269
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/delta/kossel_pro/Configuration.h 파일 보기

@@ -270,10 +270,6 @@
270 270
 #define HEATER_3_MAXTEMP 275
271 271
 #define BED_MAXTEMP 150
272 272
 
273
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
274
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
275
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
276
-
277 273
 //===========================================================================
278 274
 //============================= PID Settings ================================
279 275
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/delta/kossel_xl/Configuration.h 파일 보기

@@ -257,10 +257,6 @@
257 257
 #define HEATER_3_MAXTEMP 275
258 258
 #define BED_MAXTEMP 150
259 259
 
260
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
261
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
262
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
263
-
264 260
 //===========================================================================
265 261
 //============================= PID Settings ================================
266 262
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/makibox/Configuration.h 파일 보기

@@ -264,10 +264,6 @@
264 264
 #define HEATER_3_MAXTEMP 275
265 265
 #define BED_MAXTEMP 150
266 266
 
267
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
268
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
269
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
270
-
271 267
 //===========================================================================
272 268
 //============================= PID Settings ================================
273 269
 //===========================================================================

+ 0
- 4
Marlin/example_configurations/tvrrug/Round2/Configuration.h 파일 보기

@@ -263,10 +263,6 @@
263 263
 #define HEATER_3_MAXTEMP 275
264 264
 #define BED_MAXTEMP 150
265 265
 
266
-// If you want the M105 heater power reported in watts, define the BED_WATTS, and (shared for all extruders) EXTRUDER_WATTS
267
-//#define HOTEND_WATTS (12.0*12.0/6.7) // P=U^2/R
268
-//#define BED_WATTS (12.0*12.0/1.1)    // P=U^2/R
269
-
270 266
 //===========================================================================
271 267
 //============================= PID Settings ================================
272 268
 //===========================================================================

Loading…
취소
저장