mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-08 19:50:34 +08:00
add more accessors for 2nd order lp block and derivative block
This commit is contained in:
@@ -200,10 +200,15 @@ int blockHighPassTest()
|
||||
|
||||
float BlockLowPass2::update(float input)
|
||||
{
|
||||
if (!isfinite(getState())) {
|
||||
setState(input);
|
||||
}
|
||||
|
||||
if (_lp.get_cutoff_freq() != getFCutParam()) {
|
||||
_lp.set_cutoff_frequency(_fs, getFCutParam());
|
||||
}
|
||||
return _lp.apply(input);
|
||||
_state = _lp.apply(input);
|
||||
return _state;
|
||||
}
|
||||
|
||||
float BlockIntegral::update(float input)
|
||||
|
||||
Reference in New Issue
Block a user