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: mbed
Diff: src/boards.cpp
- Revision:
- 9:816b9a4e4f21
- Parent:
- 8:d3d7dca419b3
- Child:
- 10:6c3233b03658
--- a/src/boards.cpp Thu Dec 06 16:22:11 2018 +0000
+++ b/src/boards.cpp Fri Dec 07 00:15:19 2018 +0000
@@ -188,9 +188,37 @@
void updateControls(unsigned short ref){
//getLUTcode(i12);
//getLUTcode(my12);
+
+ ref = ref/ADC_RESULT_SCALE_FACTOR;
+
unsigned int cBuf = getLUT_thermCode(ref);
wr_out_code = setBoardEnables(cBuf);
cBuf = getLUT_binCode(ref);
en_out_code = setBoardWeights(cBuf);
+}
+
+void XupdateControls(unsigned short ref){
+ //getLUTcode(i12);
+ //getLUTcode(my12);
+ sprintf(strbuf, "refr=%d\r\n", ref);
+ sendSerial(strbuf);
+
+ ref = ref/64;
+
+ sprintf(strbuf, "refc=%d\r\n", ref);
+ sendSerial(strbuf);
+
+ sendSerial("enter updateControls\r\n");
+ unsigned int cBuf = getLUT_thermCode(ref);
+ sendSerial("cBuf1 updateControls\r\n");
+ wr_out_code = setBoardEnables(cBuf);
+ sendSerial("wr_out_code updateControls\r\n");
+
+ cBuf = getLUT_binCode(ref);
+ sendSerial("cBuf2 updateControls\r\n");
+ en_out_code = setBoardWeights(cBuf);
+ sendSerial("en_out_code updateControls\r\n");
+
+ wait(0.5);
}
\ No newline at end of file