From 250b08679f8774fb562e614789a89cf5039ca97d Mon Sep 17 00:00:00 2001 From: Thammi Date: Thu, 5 Sep 2013 22:06:02 +0200 Subject: [PATCH] Adjust buggy thresholds --- firmware/apps/buggy.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/apps/buggy.c b/firmware/apps/buggy.c index d242274..52be93f 100644 --- a/firmware/apps/buggy.c +++ b/firmware/apps/buggy.c @@ -7,7 +7,7 @@ #include inline uint16_t biased_random(uint8_t value) { - return value / 4 * (rand() & 7); + return value / 8 * (rand() & 7); } static void init(void) { @@ -20,12 +20,12 @@ static void run(void) { pentatonic_all_led_set(light >> 3); - motor_set(biased_random(light) > 0x50); + motor_set(biased_random(light) > 0x40); led_set(RIGHT, biased_random(light) > 0x20); led_set(LEFT, biased_random(light) > 0x20); - if(biased_random(light) > 0x70) { + if(biased_random(light) > 0x50) { uint16_t tone = (biased_random(light) * 2) + 500; set_note(tone, 0); } else {