From f128a151177cb1a2ee949948ef666125db450efc Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Mon, 17 Aug 2015 11:15:58 -0700 Subject: [PATCH] Reduce mag^2 threshold a bit. --- firmware/sgpio-rx/sgpio-rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/sgpio-rx/sgpio-rx.c b/firmware/sgpio-rx/sgpio-rx.c index 092d5cc3..c00c820b 100644 --- a/firmware/sgpio-rx/sgpio-rx.c +++ b/firmware/sgpio-rx/sgpio-rx.c @@ -68,7 +68,7 @@ void rx_test() { magsq = sigi * sigi + sigq * sigq; /* illuminate LED3 only when magsq exceeds threshold */ - if (magsq > 0x3c00) + if (magsq > 0x1000) gpio_set(PORT_LED1_3, (PIN_LED3)); /* LED3 on */ else gpio_clear(PORT_LED1_3, (PIN_LED3)); /* LED3 off */