Skip to content

[Bug] Negative sign should be on the complete gyro angular veloctiy with the removed gyro bias for Optical Flow Gyro #25818

@Gaurav-Kapoor-07

Description

@Gaurav-Kapoor-07

Hi PX4-Autopilot devs, I am on version 1.15.4.

Shouldn't here:

_ref_body_rate = -imu_delayed.delta_ang / imu_delayed.delta_ang_dt - getGyroBias(); // flow gyro has opposite sign convention
be a negative sign for the whole bias removed gyro measurements for the Optical Flow control.

So the corrected code should be,

_ref_body_rate = -(imu_delayed.delta_ang / imu_delayed.delta_ang_dt - getGyroBias()); // flow gyro has opposite sign convention

Although version 1.16.0 corrects it here ->

// flow gyro has opposite sign convention
_ref_body_rate = -(imu_delayed.delta_ang / imu_delayed.delta_ang_dt - getGyroBias());

I can create a pull request if required.

Thanks and best regards,
Gaurav

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions