Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MarlinKimbra
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
MarlinKimbra
Commits
ea45c20d
Commit
ea45c20d
authored
Feb 12, 2015
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add PID BED DEBUG
parent
b5a673fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
Configuration.h
MarlinKimbra/Configuration.h
+1
-0
temperature.cpp
MarlinKimbra/temperature.cpp
+15
-0
No files found.
MarlinKimbra/Configuration.h
View file @
ea45c20d
...
...
@@ -263,6 +263,7 @@
#define MAX_BED_POWER 255 // limits duty cycle to bed; 255=full current
#ifdef PIDTEMPBED
//#define PID_BED_DEBUG // Sends debug data to the serial port.
// 120v 250W silicone heater into 4mm borosilicate (MendelMax 1.5+)
// from FOPDT model - kp=.39 Tp=405 Tdead=66, Tc set to 79.2, aggressive factor of 0.15 (vs 0.1, 1, 10)
#define DEFAULT_bedKp 10.00
...
...
MarlinKimbra/temperature.cpp
View file @
ea45c20d
...
...
@@ -708,6 +708,21 @@ void manage_heater()
pid_output
=
constrain
(
target_temperature_bed
,
0
,
MAX_BED_POWER
);
#endif //PID_OPENLOOP
#ifdef PID_BED_DEBUG
SERIAL_ECHO_START
;
SERIAL_ECHO
(
" PID_BED_DEBUG "
);
SERIAL_ECHO
(
": Input "
);
SERIAL_ECHO
(
pid_input
);
SERIAL_ECHO
(
" Output "
);
SERIAL_ECHO
(
pid_output
);
SERIAL_ECHO
(
" pTerm "
);
SERIAL_ECHO
(
pTerm_bed
);
SERIAL_ECHO
(
" iTerm "
);
SERIAL_ECHO
(
iTerm_bed
);
SERIAL_ECHO
(
" dTerm "
);
SERIAL_ECHOLN
(
dTerm_bed
);
#endif //PID_BED_DEBUG
if
((
current_temperature_bed
>
BED_MINTEMP
)
&&
(
current_temperature_bed
<
BED_MAXTEMP
))
{
soft_pwm_bed
=
(
int
)
pid_output
>>
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment