aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSelene ToyKeeper2021-08-12 05:32:51 -0600
committerSelene ToyKeeper2021-08-12 05:32:51 -0600
commit73b67cccbe050be9e7e7ea671ffbbdd1d6f14f61 (patch)
treef81c6bd9c835cf16d563c1b4436b6fe76c62e4c7 /bin
parentchanged Noctigon KR4 from fixed to dynamic PWM TOP value, for later use (diff)
downloadanduril-73b67cccbe050be9e7e7ea671ffbbdd1d6f14f61.tar.gz
anduril-73b67cccbe050be9e7e7ea671ffbbdd1d6f14f61.tar.bz2
anduril-73b67cccbe050be9e7e7ea671ffbbdd1d6f14f61.zip
got PFM / dynamic PWM actually working on Noctigon KR4
(and also added "jump start moon" to it) (and generally finished adding dynamic PWM support to FSM)
Diffstat (limited to '')
-rwxr-xr-xbin/level_calc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/level_calc.py b/bin/level_calc.py
index e194331..acac332 100755
--- a/bin/level_calc.py
+++ b/bin/level_calc.py
@@ -16,9 +16,9 @@ dyn_pwm = False
def main(args):
"""Calculates PWM levels for visually-linear steps.
"""
- pwm_arg = str(max_pwm)
cli_answers = []
global max_pwm, max_pwms, dyn_pwm
+ pwm_arg = str(max_pwm)
i = 0
while i < len(args):