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: PID QEI SB1602E mbed-rtos mbed
Fork of PreHeater by
Revision 4:143b93e499a3, committed 2015-06-14
- Comitter:
- kazu_zamasu
- Date:
- Sun Jun 14 07:04:07 2015 +0000
- Parent:
- 3:9af1bd67c5f8
- Child:
- 5:bfbc802f4958
- Commit message:
- Fix line 129 Pv read source.
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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();
}
