Origin firmware.

Dependencies:   PID QEI SB1602E mbed-rtos mbed

Fork of PreHeater by Kazu Zamasu

Revision:
4:143b93e499a3
Parent:
3:9af1bd67c5f8
Child:
5:bfbc802f4958
--- a/main.cpp	Sun Jun 14 02:44:14 2015 +0000
+++ b/main.cpp	Sun Jun 14 07:04:07 2015 +0000
@@ -1,3 +1,27 @@
+/*The MIT License (MIT)
+
+Copyright (c) <2015> <Kazumichi Aoki>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+*/
+
+
 #include "mbed.h"
 #include "PID.h"
 #include "QEI.h"
@@ -26,7 +50,7 @@
 char *init_massage = "Welcome!";
 
 
-/*Rotary encode pin, pinmode and sppecification instance */
+/*Rotary encode pin, pinmode and specification initialize */
 #define ROTATE_PER_REVOLUTIONS  24 //QEI 1 rotate by count
 QEI wheel(dp11, PullUp, dp13, PullUp,NC, ROTATE_PER_REVOLUTIONS, QEI::X2_ENCODING);
 
@@ -102,7 +126,7 @@
             out = OV_LL;
         } else if (Run == 1) {
             /* TIC PID read process value */
-            TIC.setProcessValue(temp_cal);
+            TIC.setProcessValue(temp_pv);
             //PID calculate output.
             out = TIC.compute();
         }