Reduce mag^2 threshold a bit.

This commit is contained in:
Jared Boone
2015-08-17 11:15:58 -07:00
parent 149cd4effc
commit f128a15117

View File

@ -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 */