From 47ca605bafa63ca0f2fb878223b0af128c927b13 Mon Sep 17 00:00:00 2001 From: Englebert Date: Tue, 8 Aug 2023 03:10:33 +0800 Subject: [PATCH] Added the changes --- src/.main.cpp.swp | Bin 65536 -> 16384 bytes src/.main.h.swp | Bin 16384 -> 16384 bytes src/main.h | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/.main.cpp.swp b/src/.main.cpp.swp index d2db21bb577872049aad21f6348c8cd752e6bf65..d249202d2993fd11ec3576be1a7ba1b74c37a777 100644 GIT binary patch delta 397 zcmZo@U}R&zH{9ub)I=*0_)~?%pyFDT$7mv zR5|}cLC<7E0rC2OP+liUD-f_TLTD((@E0nd4-sbQN0a{pl}~`m|3j1i4V5o~%EvK5 z7*J*P48NcXqM!;cpekVa36-yg%4;#B7{KrYDqjngUy3IG9V*WTl~-ax)<5}pqsZn9 zf(CpO50q_EU=h$;$j`uV6^KE>2-ETs$bSyR&w%(T5MKvkkeVy}n-2=w^KCqk!Z`V+ Gr8WRud~;I( literal 65536 zcmeI537jNFndl1yMNW_1hj@_;hcz(M=iCFMebmgf_GNeVa12;fS7mqCOm$UTRXsBe z3_MmqRs_#gA9$^|C@SE!JXBCXecs@Kh=At;0EYU%P%7$^qwd@hGhxa<*g|V1hn9RH5ZmA;Y8hlO~ z9$nknp;BlNDi%B2Pq1~kRNUrfD&^L}^g!aE%DAoNQl@n} zoh!6tW@Z|u+C16RKvM(rYGAf9v3$)zvCfWmRZx#ya)k5jXN}Dptr?)Hfu;tU8fa>u zsez^jni^P!_fz%n)AaWlRp$@VzfC$$w<9W1tg)%mYfoj*XIH~KwJ3u@vYqR*S}JF3o``&zHVeWL2TKHU6j zYM`lsrUsfCXlkITfu;tU8fa>usez^jni^g^Qp9WoUy|crN?_1O8_C7`z51pc`HY z4`cj)AFhN?z$K7_jqnn9F&qUk_&JV-8{u+z9b5uaa6G&aV(?R(B{#qa;N9>pcqhCT zim(-qg3sdgxE#)g85oDHa0;9Narh06kMm(Cyb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t5_N@lj4t=VDIj3J{6ZoI*#ueR!aJ%h~bZysr`swddVeCV2OMPu?T%mDq| zGH3oRhG^ELnP*^0Gm{o8bk$fZdx-siH@09FTT|@+leFRX18n*$K*s*NumW0P zA9xDfhfV+g;4AQDxC!0^yPyx+;OVdr+<^@*a{_LH55ouH1Mq%02gcwSI0$}<{r+Q+ zeF8oS?|`%6ERZn-XTTU72ajUM%iMr#;8So3TnszlB-jFGZoo4B-y39ofotF*xByOt ztI2;7u!>0cL$e4rk;XIgvHi*G*(d(UX2YeY` z2TIrV4CLnVrUsfCXlkITfxjCKNW;heG<}|%nT3$-Pc(g=!B+7!RJ~TKZ(I1;#J0d~ z<3l^sj76h2sjtk>uxV&E2-}mzFRZPnKw2` zztM6IFVC^%Pf1$W%gfkitrWqK(XFp&=6Z?CdLh09Jy&coUKbN3>`CyCS_bxC&y}a8 zS)d1|>GRY!b3@N?)90C)T4081`aGGB+NhTya1$-Cp7I@)c8xnvZ-XBvTvG*y|0b#` zBTh}$68rx^Z1gOM{f}v{K9BIvT_EcKz8xws3d`Vd_!Hq}{=ba-|1f+AWDNk7j!vWb z)zm;!15FJyHPF;RQv*#6G&RuFKvM%v4Ky|IkEH?Q`?i*QYOWQAQj9((a{2rouVm)W e3ap;d)uq;06W!w>O?o@sdUFBF-tt*;D)v7IqSUJZ diff --git a/src/.main.h.swp b/src/.main.h.swp index 1ecd4d361aec4da1420d59acb06ddb837a5c8de4..8989af64121dc973abcd5405f17d79903d589788 100644 GIT binary patch delta 205 zcmWN@KMMh20LSs)b9c|($zr|Z<~dKf#d&_GfrPgl@qqi>;S#(2Qox1xyyB&TM69ex{iI!l4JksK)B@)Z D$Q>l7 diff --git a/src/main.h b/src/main.h index 4c48904..b96bce3 100644 --- a/src/main.h +++ b/src/main.h @@ -221,7 +221,7 @@ uint16_t median_get_pitch_steps(void); uint16_t median_roll(uint16_t val); uint16_t median_get_roll_steps(void); uint16_t median(uint8_t median_type); -#define MAX_SAMPLING 5 +#define MAX_SAMPLING 21 #define POS_SAMPLING MAX_SAMPLING / 2 uint16_t sampling(uint8_t median_type); uint16_t sampling_data[MAX_SAMPLING];