Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP MODSERIAL mbed monitor timer0
Fork of 17_PT1000 by
Revision 17:c307f8c96ab1, committed 2014-08-30
- Comitter:
- rs27
- Date:
- Sat Aug 30 08:49:43 2014 +0000
- Parent:
- 16:3a4350104b68
- Child:
- 18:939d3df56218
- Commit message:
- 300814a
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sat Aug 30 08:38:54 2014 +0000
+++ b/main.cpp Sat Aug 30 08:49:43 2014 +0000
@@ -104,7 +104,7 @@
int tropfperiode = 60; // in Sekunden
bool send_flag = true;
-float temp_float, temp_diff, temp_neu, esum, temp_soll;
+float temp_float, temp_diff, temp_neu, esum, temp_soll, regelwert;
//------------------------------------------------------------------------------
@@ -426,6 +426,8 @@
}
+ regelwert = temp_neu;
+
//------------------------------------------------------
// Zulässige Temperatur für den Heizwiderstand begrezen
// bei eingeschalteter Trofensteuerung wird die Temperatur
@@ -435,7 +437,7 @@
{
if(temp_float > R_TEMP_MAX)
{
- temp_neu = 0.0;
+ regelwert = 0.0;
esum = 0.0;
}
}
@@ -443,7 +445,7 @@
{
if(temp_float > soll_wert)
{
- temp_neu = 0.0;
+ regelwert = 0.0;
esum = 0.0;
}
@@ -454,7 +456,7 @@
if (t_flag)
{
- heizung.pulsewidth(0.0001 + temp_neu);
+ heizung.pulsewidth(0.0001 + regelwert);
//pc.printf("%0.4f;",temp_alt);
}
else
