[chronojump] ForceSensor capture options, do not show: normal/abs/inverted on ForceResultant (is always abs)



commit f4622721e24d22e09a73b4c370bde05bbe91c315
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Apr 12 17:01:20 2021 +0200

    ForceSensor capture options, do not show: normal/abs/inverted on ForceResultant (is always abs)

 src/gui/app1/forceSensor.cs | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/src/gui/app1/forceSensor.cs b/src/gui/app1/forceSensor.cs
index ada321cd..31918239 100644
--- a/src/gui/app1/forceSensor.cs
+++ b/src/gui/app1/forceSensor.cs
@@ -2847,6 +2847,18 @@ LogB.Information(" fs R ");
 
                setLabelContactsExerciseSelected(Catalog.GetString(fse.Name) + isElasticStr);
                combo_force_sensor_button_sensitive_exercise(true);
+
+               if(fse.ForceResultant) {
+                       /*
+                          setForceSensorCaptureOptions(ForceSensor.CaptureOptions.ABS);
+                          combo_force_sensor_capture_options.Sensitive = false;
+                          better to hide it instead of making it unsensitive to not force it to ABS and then 
have ABS by default in raw exercises
+                          */
+                       combo_force_sensor_capture_options.Visible = false;
+               } else {
+                       //combo_force_sensor_capture_options.Sensitive = true;
+                       combo_force_sensor_capture_options.Visible = true;
+               }
        }
 
        private void fillForceSensorExerciseCombo(string name)


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