[chronojump/optimizeRFD] forceSensor analyze control AB step working



commit fab66ca06492d763d38b560cf79fa2b448283920
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Dec 30 21:42:45 2020 +0100

    forceSensor analyze control AB step working

 glade/app1.glade                   |  24 +-
 glade/preferences_win.glade        | 897 ++++++++++++++++++++++---------------
 src/gui/app1/chronojump.cs         |  18 +-
 src/gui/app1/forceSensor.cs        |   1 +
 src/gui/app1/forceSensorAnalyze.cs |  20 +-
 src/gui/preferences.cs             |   8 +
 6 files changed, 577 insertions(+), 391 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index cc04c5261..5aea8c0fb 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -21164,10 +21164,9 @@ Concentric</property>
                                                             <property name="receives_default">True</property>
                                                             <signal name="clicked" 
handler="on_button_hscale_force_sensor_ai_a_pre_1s_clicked" swapped="no"/>
                                                             <child>
-                                                            <widget class="GtkLabel" id="label185">
+                                                            <widget class="GtkLabel" 
id="label_hscale_force_sensor_ai_a_pre_1s">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">-1s</property>
                                                             </widget>
                                                             </child>
                                                             </widget>
@@ -21237,10 +21236,9 @@ Concentric</property>
                                                             <property name="receives_default">True</property>
                                                             <signal name="clicked" 
handler="on_button_hscale_force_sensor_ai_a_post_1s_clicked" swapped="no"/>
                                                             <child>
-                                                            <widget class="GtkLabel" id="label261">
+                                                            <widget class="GtkLabel" 
id="label_hscale_force_sensor_ai_a_post_1s">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">+1s</property>
                                                             </widget>
                                                             </child>
                                                             </widget>
@@ -21361,10 +21359,9 @@ Concentric</property>
                                                             <property name="receives_default">True</property>
                                                             <signal name="clicked" 
handler="on_button_hscale_force_sensor_ai_b_pre_1s_clicked" swapped="no"/>
                                                             <child>
-                                                            <widget class="GtkLabel" id="label33">
+                                                            <widget class="GtkLabel" 
id="label_hscale_force_sensor_ai_b_pre_1s">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">-1s</property>
                                                             </widget>
                                                             </child>
                                                             </widget>
@@ -21434,10 +21431,9 @@ Concentric</property>
                                                             <property name="receives_default">True</property>
                                                             <signal name="clicked" 
handler="on_button_hscale_force_sensor_ai_b_post_1s_clicked" swapped="no"/>
                                                             <child>
-                                                            <widget class="GtkLabel" id="label104">
+                                                            <widget class="GtkLabel" 
id="label_hscale_force_sensor_ai_b_post_1s">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
-                                                            <property name="label">+1s</property>
                                                             </widget>
                                                             </child>
                                                             </widget>
@@ -23588,6 +23584,12 @@ Concentric</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
@@ -36731,6 +36733,12 @@ then click this button.</property>
                                                             <child>
                                                             <placeholder/>
                                                             </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
+                                                            <child>
+                                                            <placeholder/>
+                                                            </child>
                                                             </widget>
                                                             <packing>
                                                             <property name="expand">False</property>
diff --git a/glade/preferences_win.glade b/glade/preferences_win.glade
index 08d1a2d83..ddb41aa21 100644
--- a/glade/preferences_win.glade
+++ b/glade/preferences_win.glade
@@ -4325,7 +4325,7 @@ It starts before and arrives there with some speed.</property>
                                   </packing>
                                 </child>
                                 <child>
-                                  <widget class="GtkFrame" id="frame12">
+                                  <widget class="GtkFrame" id="frame_force_sensor_analyze">
                                     <property name="visible">True</property>
                                     <property name="can_focus">False</property>
                                     <property name="label_xalign">0</property>
@@ -4335,127 +4335,393 @@ It starts before and arrives there with some speed.</property>
                                       <widget class="GtkAlignment" id="alignment23">
                                         <property name="visible">True</property>
                                         <property name="can_focus">False</property>
+                                        <property name="top_padding">6</property>
+                                        <property name="bottom_padding">4</property>
                                         <property name="left_padding">12</property>
+                                        <property name="right_padding">4</property>
                                         <child>
-                                          <widget class="GtkTable" id="table1">
+                                          <widget class="GtkVBox" id="vbox44">
                                             <property name="visible">True</property>
                                             <property name="can_focus">False</property>
-                                            <property name="border_width">8</property>
-                                            <property name="n_rows">2</property>
-                                            <property name="n_columns">3</property>
-                                            <property name="column_spacing">12</property>
-                                            <property name="row_spacing">10</property>
-                                            <child>
-                                              <widget class="GtkLabel" id="label40">
-                                                <property name="visible">True</property>
-                                                <property name="can_focus">False</property>
-                                                <property name="xalign">0</property>
-                                                <property name="label" translatable="yes">Elastic</property>
-                                              </widget>
-                                              <packing>
-                                                <property name="x_options">GTK_FILL</property>
-                                              </packing>
-                                            </child>
-                                            <child>
-                                              <widget class="GtkLabel" id="label121">
-                                                <property name="visible">True</property>
-                                                <property name="can_focus">False</property>
-                                                <property name="xalign">0</property>
-                                                <property name="label" translatable="yes">Not 
elastic</property>
-                                              </widget>
-                                              <packing>
-                                                <property name="top_attach">1</property>
-                                                <property name="bottom_attach">2</property>
-                                                <property name="x_options">GTK_FILL</property>
-                                              </packing>
-                                            </child>
-                                            <child>
-                                              <widget class="GtkLabel" id="label39">
-                                                <property name="visible">True</property>
-                                                <property name="can_focus">False</property>
-                                                <property name="xalign">0</property>
-                                                <property name="label" translatable="yes">Minimal range of 
movement</property>
-                                              </widget>
-                                              <packing>
-                                                <property name="left_attach">1</property>
-                                                <property name="right_attach">2</property>
-                                                <property name="x_options">GTK_FILL</property>
-                                              </packing>
-                                            </child>
+                                            <property name="spacing">12</property>
                                             <child>
-                                              <widget class="GtkLabel" id="label41">
+                                              <widget class="GtkVBox" id="vbox47">
                                                 <property name="visible">True</property>
                                                 <property name="can_focus">False</property>
-                                                <property name="xalign">0</property>
-                                                <property name="label" translatable="yes">Minimal 
force</property>
+                                                <property name="spacing">8</property>
+                                                <child>
+                                                  <widget class="GtkLabel" id="label144">
+                                                    <property name="visible">True</property>
+                                                    <property name="can_focus">False</property>
+                                                    <property name="xalign">0</property>
+                                                    <property name="label" translatable="yes">Detect 
repetitions</property>
+                                                  </widget>
+                                                  <packing>
+                                                    <property name="expand">False</property>
+                                                    <property name="fill">False</property>
+                                                    <property name="position">0</property>
+                                                  </packing>
+                                                </child>
+                                                <child>
+                                                  <widget class="GtkAlignment" id="alignment26">
+                                                    <property name="visible">True</property>
+                                                    <property name="can_focus">False</property>
+                                                    <property name="left_padding">30</property>
+                                                    <child>
+                                                      <widget class="GtkTable" id="table1">
+                                                        <property name="visible">True</property>
+                                                        <property name="can_focus">False</property>
+                                                        <property name="n_rows">2</property>
+                                                        <property name="n_columns">3</property>
+                                                        <property name="column_spacing">12</property>
+                                                        <property name="row_spacing">10</property>
+                                                        <child>
+                                                          <widget class="GtkLabel" id="label40">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="xalign">0</property>
+                                                            <property name="label" 
translatable="yes">Elastic</property>
+                                                          </widget>
+                                                          <packing>
+                                                            <property name="x_options">GTK_FILL</property>
+                                                          </packing>
+                                                        </child>
+                                                        <child>
+                                                          <widget class="GtkLabel" id="label121">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="xalign">0</property>
+                                                            <property name="label" translatable="yes">Not 
elastic</property>
+                                                          </widget>
+                                                          <packing>
+                                                            <property name="top_attach">1</property>
+                                                            <property name="bottom_attach">2</property>
+                                                            <property name="x_options">GTK_FILL</property>
+                                                          </packing>
+                                                        </child>
+                                                        <child>
+                                                          <widget class="GtkLabel" id="label39">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="xalign">0</property>
+                                                            <property name="label" 
translatable="yes">Minimal range of movement</property>
+                                                          </widget>
+                                                          <packing>
+                                                            <property name="left_attach">1</property>
+                                                            <property name="right_attach">2</property>
+                                                            <property name="x_options">GTK_FILL</property>
+                                                          </packing>
+                                                        </child>
+                                                        <child>
+                                                          <widget class="GtkLabel" id="label41">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="xalign">0</property>
+                                                            <property name="label" 
translatable="yes">Minimal force</property>
+                                                          </widget>
+                                                          <packing>
+                                                            <property name="left_attach">1</property>
+                                                            <property name="right_attach">2</property>
+                                                            <property name="top_attach">1</property>
+                                                            <property name="bottom_attach">2</property>
+                                                            <property name="x_options">GTK_FILL</property>
+                                                          </packing>
+                                                        </child>
+                                                        <child>
+                                                          <widget class="GtkHBox" id="hbox334">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">12</property>
+                                                            <child>
+                                                            <widget class="GtkHBox" id="hbox336">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">4</property>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label414">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" 
translatable="yes">Eccentric</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkSpinButton" 
id="spin_force_sensor_elastic_ecc_min_displ">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property name="has_tooltip">True</property>
+                                                            <property name="tooltip" 
translatable="yes">Minimal height</property>
+                                                            <property name="invisible_char">●</property>
+                                                            <property name="width_chars">3</property>
+                                                            <property 
name="invisible_char_set">True</property>
+                                                            <property 
name="primary_icon_activatable">False</property>
+                                                            <property 
name="secondary_icon_activatable">False</property>
+                                                            <property 
name="primary_icon_sensitive">True</property>
+                                                            <property 
name="secondary_icon_sensitive">True</property>
+                                                            <property name="adjustment">0.10000000000000001 
0.10000000000000001 10 0.10000000000000001 1 0</property>
+                                                            <property name="climb_rate">1</property>
+                                                            <property name="digits">1</property>
+                                                            <property name="snap_to_ticks">True</property>
+                                                            <property name="numeric">True</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label415">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label">m</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">2</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkHBox" id="hbox337">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">4</property>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label416">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" 
translatable="yes">Concentric</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkSpinButton" 
id="spin_force_sensor_elastic_con_min_displ">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property name="has_tooltip">True</property>
+                                                            <property name="tooltip" 
translatable="yes">Minimal height</property>
+                                                            <property name="invisible_char">●</property>
+                                                            <property name="width_chars">3</property>
+                                                            <property 
name="invisible_char_set">True</property>
+                                                            <property 
name="primary_icon_activatable">False</property>
+                                                            <property 
name="secondary_icon_activatable">False</property>
+                                                            <property 
name="primary_icon_sensitive">True</property>
+                                                            <property 
name="secondary_icon_sensitive">True</property>
+                                                            <property name="adjustment">0.10000000000000001 
0.10000000000000001 10 0.10000000000000001 1 0</property>
+                                                            <property name="climb_rate">1</property>
+                                                            <property name="digits">1</property>
+                                                            <property name="snap_to_ticks">True</property>
+                                                            <property name="numeric">True</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label417">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label">m</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">2</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                          </widget>
+                                                          <packing>
+                                                            <property name="left_attach">2</property>
+                                                            <property name="right_attach">3</property>
+                                                            <property name="x_options">GTK_FILL</property>
+                                                          </packing>
+                                                        </child>
+                                                        <child>
+                                                          <widget class="GtkHBox" id="hbox56">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">12</property>
+                                                            <child>
+                                                            <widget class="GtkHBox" id="hbox58">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">4</property>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label42">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" 
translatable="yes">Eccentric</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkSpinButton" 
id="spin_force_sensor_not_elastic_ecc_min_force">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property name="has_tooltip">True</property>
+                                                            <property name="tooltip" 
translatable="yes">Minimal height</property>
+                                                            <property name="invisible_char">●</property>
+                                                            <property name="width_chars">3</property>
+                                                            <property 
name="invisible_char_set">True</property>
+                                                            <property 
name="primary_icon_activatable">False</property>
+                                                            <property 
name="secondary_icon_activatable">False</property>
+                                                            <property 
name="primary_icon_sensitive">True</property>
+                                                            <property 
name="secondary_icon_sensitive">True</property>
+                                                            <property name="adjustment">100 1 999 1 10 
0</property>
+                                                            <property name="climb_rate">1</property>
+                                                            <property name="snap_to_ticks">True</property>
+                                                            <property name="numeric">True</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label55">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label">N</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">2</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkHBox" id="hbox59">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">4</property>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label80">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label" 
translatable="yes">Concentric</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkSpinButton" 
id="spin_force_sensor_not_elastic_con_min_force">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property name="has_tooltip">True</property>
+                                                            <property name="tooltip" 
translatable="yes">Minimal height</property>
+                                                            <property name="invisible_char">●</property>
+                                                            <property name="width_chars">3</property>
+                                                            <property 
name="invisible_char_set">True</property>
+                                                            <property 
name="primary_icon_activatable">False</property>
+                                                            <property 
name="secondary_icon_activatable">False</property>
+                                                            <property 
name="primary_icon_sensitive">True</property>
+                                                            <property 
name="secondary_icon_sensitive">True</property>
+                                                            <property name="adjustment">100 1 999 1 10 
0</property>
+                                                            <property name="climb_rate">1</property>
+                                                            <property name="snap_to_ticks">True</property>
+                                                            <property name="numeric">True</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label119">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="label">N</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">2</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">True</property>
+                                                            <property name="fill">True</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                          </widget>
+                                                          <packing>
+                                                            <property name="left_attach">2</property>
+                                                            <property name="right_attach">3</property>
+                                                            <property name="top_attach">1</property>
+                                                            <property name="bottom_attach">2</property>
+                                                            <property name="x_options">GTK_FILL</property>
+                                                          </packing>
+                                                        </child>
+                                                      </widget>
+                                                    </child>
+                                                  </widget>
+                                                  <packing>
+                                                    <property name="expand">True</property>
+                                                    <property name="fill">True</property>
+                                                    <property name="position">1</property>
+                                                  </packing>
+                                                </child>
                                               </widget>
                                               <packing>
-                                                <property name="left_attach">1</property>
-                                                <property name="right_attach">2</property>
-                                                <property name="top_attach">1</property>
-                                                <property name="bottom_attach">2</property>
-                                                <property name="x_options">GTK_FILL</property>
+                                                <property name="expand">True</property>
+                                                <property name="fill">True</property>
+                                                <property name="position">0</property>
                                               </packing>
                                             </child>
                                             <child>
-                                              <widget class="GtkHBox" id="hbox334">
+                                              <widget class="GtkVBox" id="vbox4">
                                                 <property name="visible">True</property>
                                                 <property name="can_focus">False</property>
-                                                <property name="spacing">12</property>
+                                                <property name="spacing">10</property>
                                                 <child>
-                                                  <widget class="GtkHBox" id="hbox336">
+                                                  <widget class="GtkLabel" id="label130">
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
-                                                    <property name="spacing">4</property>
-                                                    <child>
-                                                      <widget class="GtkLabel" id="label414">
-                                                        <property name="visible">True</property>
-                                                        <property name="can_focus">False</property>
-                                                        <property name="label" 
translatable="yes">Eccentric</property>
-                                                      </widget>
-                                                      <packing>
-                                                        <property name="expand">True</property>
-                                                        <property name="fill">True</property>
-                                                        <property name="position">0</property>
-                                                      </packing>
-                                                    </child>
-                                                    <child>
-                                                      <widget class="GtkSpinButton" 
id="spin_force_sensor_elastic_ecc_min_displ">
-                                                        <property name="visible">True</property>
-                                                        <property name="can_focus">True</property>
-                                                        <property name="has_tooltip">True</property>
-                                                        <property name="tooltip" translatable="yes">Minimal 
height</property>
-                                                        <property name="invisible_char">●</property>
-                                                        <property name="width_chars">3</property>
-                                                        <property name="invisible_char_set">True</property>
-                                                        <property 
name="primary_icon_activatable">False</property>
-                                                        <property 
name="secondary_icon_activatable">False</property>
-                                                        <property 
name="primary_icon_sensitive">True</property>
-                                                        <property 
name="secondary_icon_sensitive">True</property>
-                                                        <property name="adjustment">0.10000000000000001 
0.10000000000000001 10 0.10000000000000001 1 0</property>
-                                                        <property name="climb_rate">1</property>
-                                                        <property name="digits">1</property>
-                                                        <property name="snap_to_ticks">True</property>
-                                                        <property name="numeric">True</property>
-                                                      </widget>
-                                                      <packing>
-                                                        <property name="expand">False</property>
-                                                        <property name="fill">False</property>
-                                                        <property name="position">1</property>
-                                                      </packing>
-                                                    </child>
-                                                    <child>
-                                                      <widget class="GtkLabel" id="label415">
-                                                        <property name="visible">True</property>
-                                                        <property name="can_focus">False</property>
-                                                        <property name="label">m</property>
-                                                      </widget>
-                                                      <packing>
-                                                        <property name="expand">True</property>
-                                                        <property name="fill">True</property>
-                                                        <property name="position">2</property>
-                                                      </packing>
-                                                    </child>
+                                                    <property name="xalign">0</property>
+                                                    <property name="label" translatable="yes">Method to 
calcule variability</property>
                                                   </widget>
                                                   <packing>
                                                     <property name="expand">True</property>
@@ -4464,58 +4730,83 @@ It starts before and arrives there with some speed.</property>
                                                   </packing>
                                                 </child>
                                                 <child>
-                                                  <widget class="GtkHBox" id="hbox337">
+                                                  <widget class="GtkAlignment" id="alignment24">
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
-                                                    <property name="spacing">4</property>
-                                                    <child>
-                                                      <widget class="GtkLabel" id="label416">
-                                                        <property name="visible">True</property>
-                                                        <property name="can_focus">False</property>
-                                                        <property name="label" 
translatable="yes">Concentric</property>
-                                                      </widget>
-                                                      <packing>
-                                                        <property name="expand">True</property>
-                                                        <property name="fill">True</property>
-                                                        <property name="position">0</property>
-                                                      </packing>
-                                                    </child>
-                                                    <child>
-                                                      <widget class="GtkSpinButton" 
id="spin_force_sensor_elastic_con_min_displ">
-                                                        <property name="visible">True</property>
-                                                        <property name="can_focus">True</property>
-                                                        <property name="has_tooltip">True</property>
-                                                        <property name="tooltip" translatable="yes">Minimal 
height</property>
-                                                        <property name="invisible_char">●</property>
-                                                        <property name="width_chars">3</property>
-                                                        <property name="invisible_char_set">True</property>
-                                                        <property 
name="primary_icon_activatable">False</property>
-                                                        <property 
name="secondary_icon_activatable">False</property>
-                                                        <property 
name="primary_icon_sensitive">True</property>
-                                                        <property 
name="secondary_icon_sensitive">True</property>
-                                                        <property name="adjustment">0.10000000000000001 
0.10000000000000001 10 0.10000000000000001 1 0</property>
-                                                        <property name="climb_rate">1</property>
-                                                        <property name="digits">1</property>
-                                                        <property name="snap_to_ticks">True</property>
-                                                        <property name="numeric">True</property>
-                                                      </widget>
-                                                      <packing>
-                                                        <property name="expand">False</property>
-                                                        <property name="fill">False</property>
-                                                        <property name="position">1</property>
-                                                      </packing>
-                                                    </child>
+                                                    <property name="left_padding">30</property>
                                                     <child>
-                                                      <widget class="GtkLabel" id="label417">
+                                                      <widget class="GtkVBox" id="vbox41">
                                                         <property name="visible">True</property>
                                                         <property name="can_focus">False</property>
-                                                        <property name="label">m</property>
+                                                        <property name="spacing">10</property>
+                                                        <child>
+                                                          <widget class="GtkHBox" id="hbox80">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">8</property>
+                                                            <child>
+                                                            <widget class="GtkRadioButton" 
id="radio_force_sensor_variability_cvrmssd">
+                                                            <property name="label">cvRMSSD</property>
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property 
name="receives_default">False</property>
+                                                            <property name="active">True</property>
+                                                            <property name="draw_indicator">True</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            <child>
+                                                            <widget class="GtkHBox" id="hbox81">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="spacing">4</property>
+                                                            <child>
+                                                            <widget class="GtkLabel" id="label142">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="xalign">0</property>
+                                                            <property name="label" 
translatable="yes">(Recommended)</property>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">0</property>
+                                                            </packing>
+                                                            </child>
+                                                            </widget>
+                                                            <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">1</property>
+                                                            </packing>
+                                                            </child>
+                                                          </widget>
+                                                          <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">0</property>
+                                                          </packing>
+                                                        </child>
+                                                        <child>
+                                                          <widget class="GtkRadioButton" 
id="radio_force_sensor_variability_old">
+                                                            <property name="label" translatable="yes">Old 
Chronojump method</property>
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">True</property>
+                                                            <property 
name="receives_default">False</property>
+                                                            <property name="draw_indicator">True</property>
+                                                            <property 
name="group">radio_force_sensor_variability_cvrmssd</property>
+                                                          </widget>
+                                                          <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">1</property>
+                                                          </packing>
+                                                        </child>
                                                       </widget>
-                                                      <packing>
-                                                        <property name="expand">True</property>
-                                                        <property name="fill">True</property>
-                                                        <property name="position">2</property>
-                                                      </packing>
                                                     </child>
                                                   </widget>
                                                   <packing>
@@ -4526,143 +4817,115 @@ It starts before and arrives there with some speed.</property>
                                                 </child>
                                               </widget>
                                               <packing>
-                                                <property name="left_attach">2</property>
-                                                <property name="right_attach">3</property>
-                                                <property name="x_options">GTK_FILL</property>
+                                                <property name="expand">False</property>
+                                                <property name="fill">False</property>
+                                                <property name="position">1</property>
                                               </packing>
                                             </child>
                                             <child>
-                                              <widget class="GtkHBox" id="hbox56">
+                                              <widget class="GtkHBox" id="hbox82">
                                                 <property name="visible">True</property>
                                                 <property name="can_focus">False</property>
-                                                <property name="spacing">12</property>
+                                                <property name="spacing">6</property>
                                                 <child>
-                                                  <widget class="GtkHBox" id="hbox58">
+                                                  <widget class="GtkLabel" id="label143">
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
-                                                    <property name="spacing">4</property>
-                                                    <child>
-                                                      <widget class="GtkLabel" id="label42">
-                                                        <property name="visible">True</property>
-                                                        <property name="can_focus">False</property>
-                                                        <property name="label" 
translatable="yes">Eccentric</property>
-                                                      </widget>
-                                                      <packing>
-                                                        <property name="expand">True</property>
-                                                        <property name="fill">True</property>
-                                                        <property name="position">0</property>
-                                                      </packing>
-                                                    </child>
-                                                    <child>
-                                                      <widget class="GtkSpinButton" 
id="spin_force_sensor_not_elastic_ecc_min_force">
-                                                        <property name="visible">True</property>
-                                                        <property name="can_focus">True</property>
-                                                        <property name="has_tooltip">True</property>
-                                                        <property name="tooltip" translatable="yes">Minimal 
height</property>
-                                                        <property name="invisible_char">●</property>
-                                                        <property name="width_chars">3</property>
-                                                        <property name="invisible_char_set">True</property>
-                                                        <property 
name="primary_icon_activatable">False</property>
-                                                        <property 
name="secondary_icon_activatable">False</property>
-                                                        <property 
name="primary_icon_sensitive">True</property>
-                                                        <property 
name="secondary_icon_sensitive">True</property>
-                                                        <property name="adjustment">100 1 999 1 10 
0</property>
-                                                        <property name="climb_rate">1</property>
-                                                        <property name="snap_to_ticks">True</property>
-                                                        <property name="numeric">True</property>
-                                                      </widget>
-                                                      <packing>
-                                                        <property name="expand">False</property>
-                                                        <property name="fill">False</property>
-                                                        <property name="position">1</property>
-                                                      </packing>
-                                                    </child>
-                                                    <child>
-                                                      <widget class="GtkLabel" id="label55">
-                                                        <property name="visible">True</property>
-                                                        <property name="can_focus">False</property>
-                                                        <property name="label">N</property>
-                                                      </widget>
-                                                      <packing>
-                                                        <property name="expand">True</property>
-                                                        <property name="fill">True</property>
-                                                        <property name="position">2</property>
-                                                      </packing>
-                                                    </child>
+                                                    <property name="label" translatable="yes">A, B slider 
increment</property>
                                                   </widget>
                                                   <packing>
-                                                    <property name="expand">True</property>
+                                                    <property name="expand">False</property>
                                                     <property name="fill">True</property>
                                                     <property name="position">0</property>
                                                   </packing>
                                                 </child>
                                                 <child>
-                                                  <widget class="GtkHBox" id="hbox59">
+                                                  <widget class="GtkSpinButton" 
id="spin_force_sensor_analyze_ab_slider_increment">
+                                                    <property name="visible">True</property>
+                                                    <property name="can_focus">True</property>
+                                                    <property name="has_tooltip">True</property>
+                                                    <property name="tooltip" translatable="yes">Minimal 
height</property>
+                                                    <property name="invisible_char">●</property>
+                                                    <property name="width_chars">4</property>
+                                                    <property name="invisible_char_set">True</property>
+                                                    <property 
name="primary_icon_activatable">False</property>
+                                                    <property 
name="secondary_icon_activatable">False</property>
+                                                    <property name="primary_icon_sensitive">True</property>
+                                                    <property name="secondary_icon_sensitive">True</property>
+                                                    <property name="adjustment">1 0.10000000000000001 99 
0.10000000000000001 1 0</property>
+                                                    <property name="climb_rate">1</property>
+                                                    <property name="digits">1</property>
+                                                    <property name="snap_to_ticks">True</property>
+                                                    <property name="numeric">True</property>
+                                                  </widget>
+                                                  <packing>
+                                                    <property name="expand">False</property>
+                                                    <property name="fill">False</property>
+                                                    <property name="position">1</property>
+                                                  </packing>
+                                                </child>
+                                                <child>
+                                                  <widget class="GtkLabel" id="label145">
                                                     <property name="visible">True</property>
                                                     <property name="can_focus">False</property>
-                                                    <property name="spacing">4</property>
-                                                    <child>
-                                                      <widget class="GtkLabel" id="label80">
-                                                        <property name="visible">True</property>
-                                                        <property name="can_focus">False</property>
-                                                        <property name="label" 
translatable="yes">Concentric</property>
-                                                      </widget>
-                                                      <packing>
-                                                        <property name="expand">True</property>
-                                                        <property name="fill">True</property>
-                                                        <property name="position">0</property>
-                                                      </packing>
-                                                    </child>
-                                                    <child>
-                                                      <widget class="GtkSpinButton" 
id="spin_force_sensor_not_elastic_con_min_force">
-                                                        <property name="visible">True</property>
-                                                        <property name="can_focus">True</property>
-                                                        <property name="has_tooltip">True</property>
-                                                        <property name="tooltip" translatable="yes">Minimal 
height</property>
-                                                        <property name="invisible_char">●</property>
-                                                        <property name="width_chars">3</property>
-                                                        <property name="invisible_char_set">True</property>
-                                                        <property 
name="primary_icon_activatable">False</property>
-                                                        <property 
name="secondary_icon_activatable">False</property>
-                                                        <property 
name="primary_icon_sensitive">True</property>
-                                                        <property 
name="secondary_icon_sensitive">True</property>
-                                                        <property name="adjustment">100 1 999 1 10 
0</property>
-                                                        <property name="climb_rate">1</property>
-                                                        <property name="snap_to_ticks">True</property>
-                                                        <property name="numeric">True</property>
-                                                      </widget>
-                                                      <packing>
-                                                        <property name="expand">False</property>
-                                                        <property name="fill">False</property>
-                                                        <property name="position">1</property>
-                                                      </packing>
-                                                    </child>
+                                                    <property name="label" translatable="yes">s</property>
+                                                  </widget>
+                                                  <packing>
+                                                    <property name="expand">False</property>
+                                                    <property name="fill">False</property>
+                                                    <property name="position">2</property>
+                                                  </packing>
+                                                </child>
+                                                <child>
+                                                  <widget class="GtkAlignment" id="alignment27">
+                                                    <property name="visible">True</property>
+                                                    <property name="can_focus">False</property>
+                                                    <property name="left_padding">20</property>
                                                     <child>
-                                                      <widget class="GtkLabel" id="label119">
+                                                      <widget class="GtkHBox" id="hbox83">
                                                         <property name="visible">True</property>
                                                         <property name="can_focus">False</property>
-                                                        <property name="label">N</property>
+                                                        <property name="spacing">6</property>
+                                                        <child>
+                                                          <widget class="GtkLabel" id="label146">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="xalign">0</property>
+                                                            <property name="label" 
translatable="yes">Recommended:</property>
+                                                          </widget>
+                                                          <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">0</property>
+                                                          </packing>
+                                                        </child>
+                                                        <child>
+                                                          <widget class="GtkLabel" id="label147">
+                                                            <property name="visible">True</property>
+                                                            <property name="can_focus">False</property>
+                                                            <property name="xalign">0</property>
+                                                            <property name="label">1 s</property>
+                                                          </widget>
+                                                          <packing>
+                                                            <property name="expand">False</property>
+                                                            <property name="fill">False</property>
+                                                            <property name="position">1</property>
+                                                          </packing>
+                                                        </child>
                                                       </widget>
-                                                      <packing>
-                                                        <property name="expand">True</property>
-                                                        <property name="fill">True</property>
-                                                        <property name="position">2</property>
-                                                      </packing>
                                                     </child>
                                                   </widget>
                                                   <packing>
-                                                    <property name="expand">True</property>
-                                                    <property name="fill">True</property>
-                                                    <property name="position">1</property>
+                                                    <property name="expand">False</property>
+                                                    <property name="fill">False</property>
+                                                    <property name="position">3</property>
                                                   </packing>
                                                 </child>
                                               </widget>
                                               <packing>
-                                                <property name="left_attach">2</property>
-                                                <property name="right_attach">3</property>
-                                                <property name="top_attach">1</property>
-                                                <property name="bottom_attach">2</property>
-                                                <property name="x_options">GTK_FILL</property>
+                                                <property name="expand">True</property>
+                                                <property name="fill">True</property>
+                                                <property name="position">2</property>
                                               </packing>
                                             </child>
                                           </widget>
@@ -4673,7 +4936,7 @@ It starts before and arrives there with some speed.</property>
                                       <widget class="GtkLabel" id="label37">
                                         <property name="visible">True</property>
                                         <property name="can_focus">False</property>
-                                        <property name="label" translatable="yes">Detect 
repetitions</property>
+                                        <property name="label" translatable="yes">Analyze</property>
                                         <property name="use_markup">True</property>
                                       </widget>
                                       <packing>
@@ -4744,118 +5007,6 @@ It starts before and arrives there with some speed.</property>
                                     <property name="position">2</property>
                                   </packing>
                                 </child>
-                                <child>
-                                  <widget class="GtkVBox" id="vbox4">
-                                    <property name="visible">True</property>
-                                    <property name="can_focus">False</property>
-                                    <property name="spacing">10</property>
-                                    <child>
-                                      <widget class="GtkLabel" id="label130">
-                                        <property name="visible">True</property>
-                                        <property name="can_focus">False</property>
-                                        <property name="xalign">0</property>
-                                        <property name="label" translatable="yes">Method to calcule 
variability</property>
-                                      </widget>
-                                      <packing>
-                                        <property name="expand">True</property>
-                                        <property name="fill">True</property>
-                                        <property name="position">0</property>
-                                      </packing>
-                                    </child>
-                                    <child>
-                                      <widget class="GtkAlignment" id="alignment24">
-                                        <property name="visible">True</property>
-                                        <property name="can_focus">False</property>
-                                        <property name="left_padding">30</property>
-                                        <child>
-                                          <widget class="GtkVBox" id="vbox41">
-                                            <property name="visible">True</property>
-                                            <property name="can_focus">False</property>
-                                            <property name="spacing">10</property>
-                                            <child>
-                                              <widget class="GtkHBox" id="hbox80">
-                                                <property name="visible">True</property>
-                                                <property name="can_focus">False</property>
-                                                <property name="spacing">8</property>
-                                                <child>
-                                                  <widget class="GtkRadioButton" 
id="radio_force_sensor_variability_cvrmssd">
-                                                    <property name="label">cvRMSSD</property>
-                                                    <property name="visible">True</property>
-                                                    <property name="can_focus">True</property>
-                                                    <property name="receives_default">False</property>
-                                                    <property name="active">True</property>
-                                                    <property name="draw_indicator">True</property>
-                                                  </widget>
-                                                  <packing>
-                                                    <property name="expand">False</property>
-                                                    <property name="fill">False</property>
-                                                    <property name="position">0</property>
-                                                  </packing>
-                                                </child>
-                                                <child>
-                                                  <widget class="GtkHBox" id="hbox81">
-                                                    <property name="visible">True</property>
-                                                    <property name="can_focus">False</property>
-                                                    <property name="spacing">4</property>
-                                                    <child>
-                                                      <widget class="GtkLabel" id="label142">
-                                                        <property name="visible">True</property>
-                                                        <property name="can_focus">False</property>
-                                                        <property name="xalign">0</property>
-                                                        <property name="label" 
translatable="yes">(Recommended)</property>
-                                                      </widget>
-                                                      <packing>
-                                                        <property name="expand">False</property>
-                                                        <property name="fill">False</property>
-                                                        <property name="position">0</property>
-                                                      </packing>
-                                                    </child>
-                                                  </widget>
-                                                  <packing>
-                                                    <property name="expand">False</property>
-                                                    <property name="fill">False</property>
-                                                    <property name="position">1</property>
-                                                  </packing>
-                                                </child>
-                                              </widget>
-                                              <packing>
-                                                <property name="expand">False</property>
-                                                <property name="fill">False</property>
-                                                <property name="position">0</property>
-                                              </packing>
-                                            </child>
-                                            <child>
-                                              <widget class="GtkRadioButton" 
id="radio_force_sensor_variability_old">
-                                                <property name="label" translatable="yes">Old Chronojump 
method</property>
-                                                <property name="visible">True</property>
-                                                <property name="can_focus">True</property>
-                                                <property name="receives_default">False</property>
-                                                <property name="active">True</property>
-                                                <property name="draw_indicator">True</property>
-                                                <property 
name="group">radio_force_sensor_variability_cvrmssd</property>
-                                              </widget>
-                                              <packing>
-                                                <property name="expand">False</property>
-                                                <property name="fill">False</property>
-                                                <property name="position">1</property>
-                                              </packing>
-                                            </child>
-                                          </widget>
-                                        </child>
-                                      </widget>
-                                      <packing>
-                                        <property name="expand">True</property>
-                                        <property name="fill">True</property>
-                                        <property name="position">1</property>
-                                      </packing>
-                                    </child>
-                                  </widget>
-                                  <packing>
-                                    <property name="expand">False</property>
-                                    <property name="fill">False</property>
-                                    <property name="position">3</property>
-                                  </packing>
-                                </child>
                               </widget>
                             </child>
                           </widget>
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index 7c52a762c..b838480ab 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -2862,12 +2862,6 @@ public partial class ChronoJumpWindow
                        LogB.Information("catched at on_preferences_accepted ()");
                }
 
-               //forceSensor (check that pen has already been defined)
-               if(pen_black_force_capture != null)
-                       pen_black_force_capture.SetLineAttributes (preferences.forceSensorGraphsLineWidth, 
Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
-               if(pen_black_force_ai != null)
-                       pen_black_force_ai.SetLineAttributes (preferences.forceSensorGraphsLineWidth, 
Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
-
                Config.ColorBackground = preferences.colorBackground;
                Config.ColorBackgroundIsDark = UtilGtk.ColorIsDark(preferences.colorBackground);
 
@@ -2882,9 +2876,21 @@ public partial class ChronoJumpWindow
                //TODO: only if personWinHide changed
                initialize_menu_or_menu_tiny();
 
+               // ---------- force sensor changes -------------->
+
+               //(check that pen has already been defined)
+               if(pen_black_force_capture != null)
+                       pen_black_force_capture.SetLineAttributes (preferences.forceSensorGraphsLineWidth, 
Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
+               if(pen_black_force_ai != null)
+                       pen_black_force_ai.SetLineAttributes (preferences.forceSensorGraphsLineWidth, 
Gdk.LineStyle.Solid, Gdk.CapStyle.Round, Gdk.JoinStyle.Round);
+
+               //TODO: only if have changed
+               setForceSensorAnalyzeABSliderIncrements();
                // update force_capture_drawingarea
                if(current_menuitem_mode == Constants.Menuitem_modes.FORCESENSOR)// && 
radiobutton_force_sensor_analyze_manual.Active)
                        forceSensorDoGraphAI(false);
+
+               // <---------- end of force sensor changes --------------
        }
 
 
diff --git a/src/gui/app1/forceSensor.cs b/src/gui/app1/forceSensor.cs
index bbe362b17..f2e47f6e7 100644
--- a/src/gui/app1/forceSensor.cs
+++ b/src/gui/app1/forceSensor.cs
@@ -146,6 +146,7 @@ public partial class ChronoJumpWindow
                setForceDurationRadios();
                setRFDValues();
                setImpulseValue();
+               setForceSensorAnalyzeABSliderIncrements();
        }
 
 
diff --git a/src/gui/app1/forceSensorAnalyze.cs b/src/gui/app1/forceSensorAnalyze.cs
index 6538bb98b..9e230e19b 100644
--- a/src/gui/app1/forceSensorAnalyze.cs
+++ b/src/gui/app1/forceSensorAnalyze.cs
@@ -57,6 +57,10 @@ public partial class ChronoJumpWindow
        [Widget] Gtk.Notebook notebook_force_sensor_analyze; //decide between automatic and manual
 //     [Widget] Gtk.HBox hbox_force_sensor_analyze_automatic_options;
 //     [Widget] Gtk.Notebook notebook_force_analyze_automatic;
+       [Widget] Gtk.Label label_hscale_force_sensor_ai_a_pre_1s;
+       [Widget] Gtk.Label label_hscale_force_sensor_ai_a_post_1s;
+       [Widget] Gtk.Label label_hscale_force_sensor_ai_b_pre_1s;
+       [Widget] Gtk.Label label_hscale_force_sensor_ai_b_post_1s;
        [Widget] Gtk.VBox vbox_force_rfd_duration_end;
        [Widget] Gtk.Button button_force_sensor_analyze_options;
        [Widget] Gtk.HBox hbox_force_1;
@@ -583,6 +587,14 @@ public partial class ChronoJumpWindow
                return new ForceSensorImpulse(active, function, type, num1, num2);
        }
 
+       private void setForceSensorAnalyzeABSliderIncrements()
+       {
+               label_hscale_force_sensor_ai_a_pre_1s.Text = string.Format("-{0}s", 
preferences.forceSensorAnalyzeABSliderIncrement);
+               label_hscale_force_sensor_ai_a_post_1s.Text = string.Format("+{0}s", 
preferences.forceSensorAnalyzeABSliderIncrement);
+               label_hscale_force_sensor_ai_b_pre_1s.Text = string.Format("-{0}s", 
preferences.forceSensorAnalyzeABSliderIncrement);
+               label_hscale_force_sensor_ai_b_post_1s.Text = string.Format("+{0}s", 
preferences.forceSensorAnalyzeABSliderIncrement);
+       }
+
        private void on_button_force_rfd_default_clicked (object o, EventArgs args)
        {
                Sqlite.Open();
@@ -1697,7 +1709,7 @@ public partial class ChronoJumpWindow
                double startAMs = fsAI.GetTimeMS(startA);
                for(int i = startA; i > 0; i --)
                {
-                       if(startAMs - fsAI.GetTimeMS(i) >= 1000)
+                       if(startAMs - fsAI.GetTimeMS(i) >= preferences.forceSensorAnalyzeABSliderIncrement * 
1000)
                        {
                                hscale_force_sensor_ai_a.Value += i - startA;
                                return;
@@ -1713,7 +1725,7 @@ public partial class ChronoJumpWindow
                double startAMs = fsAI.GetTimeMS(startA);
                for(int i = startA; i < fsAI.GetLength() -1; i ++)
                {
-                       if(fsAI.GetTimeMS(i) - startAMs >= 1000)
+                       if(fsAI.GetTimeMS(i) - startAMs >= preferences.forceSensorAnalyzeABSliderIncrement * 
1000)
                        {
                                hscale_force_sensor_ai_a.Value += i - startA;
                                return;
@@ -1730,7 +1742,7 @@ public partial class ChronoJumpWindow
                double startBMs = fsAI.GetTimeMS(startB);
                for(int i = startB; i > 0; i --)
                {
-                       if(startBMs - fsAI.GetTimeMS(i) >= 1000)
+                       if(startBMs - fsAI.GetTimeMS(i) >= preferences.forceSensorAnalyzeABSliderIncrement * 
1000)
                        {
                                hscale_force_sensor_ai_b.Value += i - startB;
                                return;
@@ -1746,7 +1758,7 @@ public partial class ChronoJumpWindow
                double startBMs = fsAI.GetTimeMS(startB);
                for(int i = startB; i < fsAI.GetLength() -1; i ++)
                {
-                       if(fsAI.GetTimeMS(i) - startBMs >= 1000)
+                       if(fsAI.GetTimeMS(i) - startBMs >= preferences.forceSensorAnalyzeABSliderIncrement * 
1000)
                        {
                                hscale_force_sensor_ai_b.Value += i - startB;
                                return;
diff --git a/src/gui/preferences.cs b/src/gui/preferences.cs
index b1412e8ea..cd9d2662b 100644
--- a/src/gui/preferences.cs
+++ b/src/gui/preferences.cs
@@ -184,6 +184,7 @@ public class PreferencesWindow
        [Widget] Gtk.SpinButton spin_force_sensor_graphs_line_width;
        [Widget] Gtk.RadioButton radio_force_sensor_variability_old;
        [Widget] Gtk.RadioButton radio_force_sensor_variability_cvrmssd;
+       [Widget] Gtk.SpinButton spin_force_sensor_analyze_ab_slider_increment;
 
        //runEncoder tab
        [Widget] Gtk.SpinButton spin_force_sensor_acceleration;
@@ -731,6 +732,8 @@ public class PreferencesWindow
                else
                        PreferencesWindowBox.radio_force_sensor_variability_cvrmssd.Active = true;
 
+               PreferencesWindowBox.spin_force_sensor_analyze_ab_slider_increment.Value = 
preferences.forceSensorAnalyzeABSliderIncrement;
+
                //runEncoder -->
                PreferencesWindowBox.spin_force_sensor_acceleration.Value = preferences.runEncoderMinAccel;
 
@@ -2143,6 +2146,11 @@ public class PreferencesWindow
                        preferences.forceSensorVariabilityMethod = 
Preferences.VariabilityMethodEnum.CHRONOJUMP_OLD;
                }
 
+               preferences.forceSensorAnalyzeABSliderIncrement = Preferences.PreferencesChange(
+                               SqlitePreferences.ForceSensorAnalyzeABSliderIncrement,
+                               preferences.forceSensorAnalyzeABSliderIncrement,
+                               Convert.ToDouble(spin_force_sensor_analyze_ab_slider_increment.Value));
+
                //runEncoder ----
 
                preferences.runEncoderMinAccel = Preferences.PreferencesChange(


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