aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-10-31 11:40:00 -0600
committerSelene ToyKeeper2023-10-31 11:40:00 -0600
commit8d04ac9c19a825ac7d4919dd061ba08338145219 (patch)
tree90d8d4464f985e812f7a1832ad34d6701d2e2c35
parentconverted thefreeman-lin16dac to new API, (diff)
downloadanduril-8d04ac9c19a825ac7d4919dd061ba08338145219.tar.gz
anduril-8d04ac9c19a825ac7d4919dd061ba08338145219.tar.bz2
anduril-8d04ac9c19a825ac7d4919dd061ba08338145219.zip
restored original smooth-steps-downward timing;
it was just a little bit imbalanced after recent changes
-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 d896251..d907bc1 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 + (24 * smooth_steps_speed / diff);
+ uint16_t delay = 1 + (26 * 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);
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.