work in progress

Experiment - work in progress...

Files at this revision

API Documentation at this revision

Comitter:
MatteoT
Date:
Sat Jul 20 11:26:05 2013 +0000
Parent:
3:9eb188e979ba
Child:
5:444939b4790a
Commit message:
doc

Changed in this revision

RefRX.cpp Show annotated file Show diff for this revision Revisions of this file
RefRX.h Show annotated file Show diff for this revision Revisions of this file
--- a/RefRX.cpp	Sat Jul 20 11:22:12 2013 +0000
+++ b/RefRX.cpp	Sat Jul 20 11:26:05 2013 +0000
@@ -21,6 +21,8 @@
 
 bool RefRX::get (float &ref1, float &ref2, float &ref3, float &ref4)
 {
+    if(!_initialized)
+        return false;
     bool lock = _refs_access.trylock();
     if(!lock)
         return false;
--- a/RefRX.h	Sat Jul 20 11:22:12 2013 +0000
+++ b/RefRX.h	Sat Jul 20 11:26:05 2013 +0000
@@ -34,6 +34,9 @@
      */
     static void init (const int listen_port, const int destination_control_port);
     
+    /** Get references and store to parameters.
+     *  Involves the use of a Mutex with trylock().
+     */
     static bool get (float &ref1, float &ref2, float &ref3, float &ref4);
 };