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 Queue mbed-rtos FXOS8700Q
Fork of Pacemaker by
Diff: dataStruct.cpp
- Revision:
- 31:5e55042e025a
- Parent:
- 29:c0d63940b0c7
--- a/dataStruct.cpp Tue Nov 29 21:03:33 2016 +0000
+++ b/dataStruct.cpp Tue Nov 29 22:01:54 2016 +0000
@@ -19,7 +19,8 @@
void dataStruct::storeData(){
// thread.signal_wait(START_THREAD);
while(true){
- streamValue = myHardware->getSense();
+ //streamValue = myHardware->getSense();
+ streamValue = 10;
if(myQueue.GetNumberOfItems() <= N){
myQueue.Put(&streamValue);
}
@@ -27,8 +28,9 @@
}
}
-queue dataStruct::getData(){
- queue temp = myQueue;
- myQueue.Flush();
- return temp;
+double dataStruct::getData(){
+// queue temp = myQueue;
+// myQueue.Flush();
+// return temp;
+ return myHardware->getSense();
}
\ No newline at end of file
