aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-10-31 15:40:45 -0600
committerSelene ToyKeeper2023-10-31 15:40:45 -0600
commitbb81bf19fa16b3f5c3419a4c0be23e41b7507ced (patch)
treee8b6a33a5814d0b1adc6c630043650dfc19ee959
parentfinally added a change log (diff)
downloadanduril-bb81bf19fa16b3f5c3419a4c0be23e41b7507ced.tar.gz
anduril-bb81bf19fa16b3f5c3419a4c0be23e41b7507ced.tar.bz2
anduril-bb81bf19fa16b3f5c3419a4c0be23e41b7507ced.zip
slightly longer smooth-off animation, to make on and off feel symmetrical
Diffstat (limited to '')
-rw-r--r--spaghetti-monster/anduril/smooth-steps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spaghetti-monster/anduril/smooth-steps.c b/spaghetti-monster/anduril/smooth-steps.c
index d907bc1..9631e41 100644
--- a/spaghetti-monster/anduril/smooth-steps.c
+++ b/spaghetti-monster/anduril/smooth-steps.c
@@ -28,7 +28,7 @@ void smooth_steps_iter() {
// ramp-linear descent
// (jump by 1 on each frame, frame rate gives constant total time)
uint8_t diff = smooth_steps_start - smooth_steps_target;
- uint16_t delay = 1 + (26 * smooth_steps_speed / diff);
+ uint16_t delay = 1 + (30 * smooth_steps_speed / diff);
set_level(actual_level - 1);
// TODO? if delay < one PWM cycle, this can look a little weird
nice_delay_ms(delay);