[chronojump] Updated encoder-threads diagram



commit 912694c547f26711976c70f3b593d861c9b209b3
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Jan 11 14:40:16 2018 +0100

    Updated encoder-threads diagram

 diagrams/processes/encoder-threads.dia |  Bin 5213 -> 7248 bytes
 diagrams/processes/encoder-threads.png |  Bin 0 -> 190499 bytes
 src/gui/encoder.cs                     |    9 ++++-----
 3 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/diagrams/processes/encoder-threads.dia b/diagrams/processes/encoder-threads.dia
index 24b7037..251f22d 100644
Binary files a/diagrams/processes/encoder-threads.dia and b/diagrams/processes/encoder-threads.dia differ
diff --git a/diagrams/processes/encoder-threads.png b/diagrams/processes/encoder-threads.png
new file mode 100644
index 0000000..c5edc16
Binary files /dev/null and b/diagrams/processes/encoder-threads.png differ
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index da28ec2..510663a 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -347,16 +347,15 @@ public partial class ChronoJumpWindow
 
        /*
         * CAPTURE is the capture from csharp (not from external python)
-        * CAPTURE_EXTERNAL is deprecated (from Python)
         *
         * difference between:
         * CURVES: calcule and recalculate, autosaves the signal at end
-        * LOAD curves does snot
+        * LOAD curves does not save at the end?
         *
         * CAPTURE_IM records to get the inertia moment but does not calculate curves in R and not updates 
the treeview
         * CURVES_AC (After Capture) is like curves but does not start a new thread (uses same pulse as 
capture)
         */
-       enum encoderActions { CAPTURE_BG, CAPTURE, CAPTURE_EXTERNAL, CURVES, CURVES_AC, LOAD, ANALYZE, 
CAPTURE_IM, CURVES_IM }
+       enum encoderActions { CAPTURE_BG, CAPTURE, CURVES, CURVES_AC, LOAD, ANALYZE, CAPTURE_IM, CURVES_IM }
        
        //STOPPING is used to stop the camera. It has to be called only one time
        enum encoderCaptureProcess { CAPTURING, STOPPING, STOPPED } 
@@ -1144,8 +1143,7 @@ public partial class ChronoJumpWindow
        }
        
        //action can be CURVES_AC (After Capture) (where signal does not exists, need to define it)
-       //CAPTURE_EXTERNAL, CURVES, LOAD (signal is defined)
-       //CAPTURE_EXTERNAL is not implemented because it's deprecated
+       //CURVES, LOAD (signal is defined)
        void encoderCalculeCurves(encoderActions action)
        {
                if(action == encoderActions.CURVES_AC) 
@@ -2538,6 +2536,7 @@ public partial class ChronoJumpWindow
                        encoderProcessCancel = true;
        }
        
+       //this is used only on calculating inertia moment
        //this is called by non gtk thread. Don't do gtk stuff here
        //don't change properties like setting a Visibility status: Gtk.Widget.set_Visible
        //I suppose reading gtk is ok, changing will be the problem


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]