Skip to content

Improve loop time with new I2C library #13

@Cyberslug

Description

@Cyberslug

Can I suggest that you consider evaluating ESP32_SoftWire as an alternative to the Wire library for IMU communication. This could provide significant performance improvements in the flight control loop times.

While working on Issue #12 I noticed that the IMU readData consumes much of the loop time. As this is an ESP32 based project the ESP32_Softwire project is available as a bit banging replacement for Wire. I was stunned with the performance improvement with loop times reduced by approximately 1/3 in quick tests. Note that I haven't tested this beyond bench test using the DEBUG_LOOP_RATE. Test was conducted with a receiver attached and functioning.

See https://github.com/qqqlab/ESP32_SoftWire (This is by the author of Madflight)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions