aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSelene ToyKeeper2018-10-10 21:29:22 -0600
committerSelene ToyKeeper2018-10-10 21:29:22 -0600
commit85e0f22130db548c25e2c7677b02087211571306 (patch)
tree00d56b45fa181418fc2ce72bfa93f766008bdfe0 /bin
parentFixed location of an #endif (diff)
parentapplied thermal target bugfix from Anduril (diff)
downloadanduril-85e0f22130db548c25e2c7677b02087211571306.tar.gz
anduril-85e0f22130db548c25e2c7677b02087211571306.tar.bz2
anduril-85e0f22130db548c25e2c7677b02087211571306.zip
merged updates from fsm branch
Diffstat (limited to 'bin')
-rwxr-xr-xbin/level_calc.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/level_calc.py b/bin/level_calc.py
index 2aa8727..c903800 100755
--- a/bin/level_calc.py
+++ b/bin/level_calc.py
@@ -6,7 +6,7 @@ import math
interactive = False
# supported shapes: ninth, fifth, cube, square, log_e, log_2
-ramp_shape = 'cube'
+#ramp_shape = 'cube'
def main(args):
@@ -14,6 +14,7 @@ def main(args):
"""
# Get parameters from the user
questions_main = [
+ (str, 'ramp_shape', 'cube', 'Ramp shape? [cube, square, fifth, ninth, log_e, log_2]'),
(int, 'num_channels', 1, 'How many power channels?'),
(int, 'num_levels', 4, 'How many total levels do you want?'),
]
@@ -36,6 +37,10 @@ def main(args):
answers = Empty()
ask(questions_main, answers)
+
+ global ramp_shape
+ ramp_shape = answers.ramp_shape
+
channels = []
if not args:
print('Describe the channels in order of lowest to highest power.')