From bf65b5f14ab0ec75ac770a1c68f45be259aedcbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Sun, 24 Nov 2019 13:10:01 +0000 Subject: [PATCH] default to k_p=1 on boot --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a9c02e5..ece96ce 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,7 +100,7 @@ const APP: () = { ethernet_periph: (pac::ETHERNET_MAC, pac::ETHERNET_DMA, pac::ETHERNET_MTL), #[init([[0.; 5]; 2])] iir_state: [IIRState; 2], - #[init([IIR { ba: [0., 0., 0., 0., 0.], y_offset: 0., y_min: -SCALE - 1., y_max: SCALE }; 2])] + #[init([IIR { ba: [1., 0., 0., 0., 0.], y_offset: 0., y_min: -SCALE - 1., y_max: SCALE }; 2])] iir_ch: [IIR; 2], #[link_section = ".sram3.eth"] #[init(eth::Device::new())]