[chronojump] On inertia moment calculation, vertical display is smaller
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] On inertia moment calculation, vertical display is smaller
- Date: Mon, 25 May 2015 15:25:11 +0000 (UTC)
commit 92797d0d9807cf8cd6a2d5f2806afab9204dd715
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon May 25 17:24:37 2015 +0200
On inertia moment calculation, vertical display is smaller
src/gui/encoder.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/gui/encoder.cs b/src/gui/encoder.cs
index ea1b86e..c89959e 100644
--- a/src/gui/encoder.cs
+++ b/src/gui/encoder.cs
@@ -2041,7 +2041,10 @@ public partial class ChronoJumpWindow
int heightG = encoder_capture_signal_drawingarea.Allocation.Height;
double realHeightG;
- if(encoderConfigurationCurrent.has_inertia)
+
+ if(inertiaMomentCalculation)
+ realHeightG = 2 * 500 ; //.5 meter up / .5 meter down
+ else if(encoderConfigurationCurrent.has_inertia)
realHeightG = 2 * 5000 ; //5 meters up / 5 meters down
else
realHeightG = 2 * 1000 ; //1 meter up / 1 meter down
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]