no_std autopilot core for Stable Flight: copter, plane, tailsitter, and quadplane guidance and stabilizers, waypoint navigation, failsafe, autotune, mixers, and the per-tick flight loop
usesuper::*;useassert2::check;/// With the notch off the chain is the low-pass alone, bit for bit, so airframes that
/// leave it off fly as before (#597).
#[test]fnan_off_notch_leaves_the_low_pass_alone(){constDT:f32=0.004;letmut chain =GyroFilter::default();letmut low_pass =LowPass::default();let filters =GyroFilters::low_pass(40.0);for tick in0..500{let rate_radps =libm::sinf(0.37* tick asf32)+0.1*libm::sinf(2.1* tick asf32);check!(chain.apply(rate_radps,DT,&filters)== low_pass.apply(rate_radps,DT,40.0));}}