IMU in use state

Completed

Comments

9 comments

  • DJI Developer Support
    Generally speaking, the IMU is continuous at work. You can get the status of different modules through IMUState, when they are NORMAL, they work well, other status needs IMU calibration.
    0
    Comment actions Permalink
  • DroneControl

    Yes, but I noticed in the DJI Pilot 2 app that it shows if either IMU or Compass is in use under settings. And I couldn't find a status value in IMUState that would represent this.

    0
    Comment actions Permalink
  • DJI Developer Support
    Could you send us a screenshot of the pilot 2 showing IMU or Compass in use?
    0
    Comment actions Permalink
  • DroneControl

    Sure, it's that yellow dot that appears next to IMU in use, can't find any key that would give that status and IMUState also does not have that state.

    0
    Comment actions Permalink
  • DJI Developer Support
    This issue requires contacting engineers for inquiries, so please wait for a while.
    0
    Comment actions Permalink
  • DroneControl

    Sure, no problem. Looking forward to the solution.

    0
    Comment actions Permalink
  • DJI Developer Support
    You can use FlightControllerKey.KeyRedundancySensorUsedState to determine who is in use. The magIndex refers to the index of the IMU being used.
    1
    Comment actions Permalink
  • DroneControl

    Great, found the key! Thank you for your support!

    0
    Comment actions Permalink
  • DJI Developer Support
    I'm glad I could help you.
    0
    Comment actions Permalink

Please sign in to leave a comment.