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.
Fork of scoreLight_Advanced by
Diff: blobConfig.cpp
- Revision:
- 44:46e25fa1669b
- Parent:
- 35:35af5086ab4f
- Child:
- 46:90516893793a
diff -r 5ff1a26d99ac -r 46e25fa1669b blobConfig.cpp
--- a/blobConfig.cpp Fri Mar 28 10:25:06 2014 +0000
+++ b/blobConfig.cpp Mon Mar 31 10:57:35 2014 +0000
@@ -137,6 +137,9 @@
default:
break;
}
+
+ // make sure lockin red is ON (could be off if using blue for checking mirror delay...):
+ IO.setLaserLockinPower(1);
}
// ==================== Template spots from which to create multi-spot configurations: =====================
@@ -323,7 +326,9 @@
numBlobs=blobArray.size();
}
// ==================================================================================================================================================
-
+void blobConfig::processSensedData() {
+ for (int i=0; i<blobArray.size(); i++) blobArray[i]->displaySensingBuffer.processSensedData(); // note: region with light is -1, and without is 2 (TO CHANGE!!! then we don't need to do "if" in the moment computation, but just a product)
+}
void blobConfig::allKill() { // this put all the blobs in "dead" mode, meaning that neither rendering nor update is done (but they are not deleted).
for (int i=0; i<blobArray.size(); i++) {
