Skip to content

Harmonic Notch Filter Bandwidth greater than 2 x center frequency is not constrained #30284

Open
@bnsgeyer

Description

@bnsgeyer

Bug report

Issue details

A bandwidth greater than twice the center frequency was accidentally used which resulted in large lags in the filtered response making the aircraft nearly unflyable. it was easily reproducible in SITL. It was present not only in 4.6.0 but also 4.5.7

Version
4.5.7 and 4.6.0

Platform
[ ] All
[ ] AntennaTracker
[X] Copter - Heli
[ ] Plane
[ ] Rover
[ ] Submarine

Airframe type
Heli

Hardware type
This was first encountered on a Cube orange plus in real life. Data log provided was conducted in SITL for heli frame type

Logs
The attached log shows the issue with heli in SITL on Copter 4.6.0. The INS_GYRO_RATE was set to 1 and the INS_FAST_SAMPLE was set to 7 as this were the setting on the heli which had the issue in real life. In this aircraft, center frequency is set to 9 hz and the bandwidth set to 40hz which produced the lagged response. It is most notable on the IMU0.gz compared to IMU1.gz shown here.

Image

link to log is here
https://drive.google.com/file/d/1v0X5433Ez8ADqn1HGYNyYcjJrkJzvDyv/view?usp=sharing

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions