Planner: bring sanity to the SAC rate handling

The old implementation was... let's call it creative.
This tries to actually get things right instead of using magic.
Don't pretend that double values are ints.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-08-19 11:13:55 -05:00
parent 150676ce3d
commit 6ed189f32c
5 changed files with 61 additions and 48 deletions

View file

@ -30,8 +30,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>1078</width>
<height>418</height>
<width>1084</width>
<height>424</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
@ -367,13 +367,6 @@
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="bottomSAC">
<property name="suffix">
<string>/min</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_14">
<property name="text">
@ -381,13 +374,6 @@
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QSpinBox" name="decoStopSAC">
<property name="suffix">
<string>/min</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
@ -447,6 +433,32 @@
</property>
</spacer>
</item>
<item row="0" column="1">
<widget class="QDoubleSpinBox" name="bottomSAC">
<property name="suffix">
<string>/min</string>
</property>
<property name="decimals">
<number>0</number>
</property>
<property name="maximum">
<double>99.000000000000000</double>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QDoubleSpinBox" name="decoStopSAC">
<property name="suffix">
<string>/min</string>
</property>
<property name="decimals">
<number>0</number>
</property>
<property name="maximum">
<double>99.000000000000000</double>
</property>
</widget>
</item>
</layout>
</widget>
</item>