[chronojump] ForceSensorExercise, fixed wrong eccMin conMin on raw and "elastic"



commit a17796a4756ab6946d62110a1e7ce0c2a3ecbb06
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Mar 10 17:12:41 2021 +0100

    ForceSensorExercise, fixed wrong eccMin conMin on raw and "elastic"

 src/gui/forceSensorExercise.cs | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gui/forceSensorExercise.cs b/src/gui/forceSensorExercise.cs
index 6cd6ae0f..98c0bc08 100644
--- a/src/gui/forceSensorExercise.cs
+++ b/src/gui/forceSensorExercise.cs
@@ -682,14 +682,14 @@ public class ForceSensorExerciseWindow
 
                double eccMin = -1;
                double conMin = -1;
-               if(! check_detect_repetitions_from_prefs.Active)
+               if(! radio_detect_repetitions_from_prefs.Active)
                {
-                       if(radio_fixation_elastic.Active) {
-                               eccMin = spin_force_sensor_elastic_ecc_min_displ.Value;
-                               conMin = spin_force_sensor_elastic_con_min_displ.Value;
-                       } else {
+                       if(radio_force_sensor_raw.Active || ! radio_fixation_elastic.Active) {
                                eccMin = spin_force_sensor_not_elastic_ecc_min_force.Value;
                                conMin = spin_force_sensor_not_elastic_con_min_force.Value;
+                       } else {
+                               eccMin = spin_force_sensor_elastic_ecc_min_displ.Value;
+                               conMin = spin_force_sensor_elastic_con_min_displ.Value;
                        }
                }
 


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