DJI Mavic, Air and Mini Drones
Friendly, Helpful & Knowledgeable Community
Join Us Now

Compass/IMU Sampling rate by the FLT CTRL software

Cookedinlh

Well-Known Member
Joined
Oct 17, 2016
Messages
468
Reactions
219
Location
Sarnia ON Canada
Anyone know how often the compasses or IMU (3 dimensional data) is sampled or used by the Flight Controller software during flight. Is it the same as the data sample rate of all the "all parameter file" recordings or does the flight control software actually use it faster than the whole parameter file is generated. I suspect it's faster and Probably Proprietary even if you have SDK expertise. THANKS
 
I have no idea, but just have to ask, why?
 
I'm preparing a course on Airmanship for Drone operators who haven't had the benefit of growing up around aviation and other pilots so they can take their careers to the next level. This knowledge of the flight controller performance has to do with understanding the precision and susceptibility to magnetic anomalies.
 
Last edited by a moderator:
I'm preparing a course on Airmanship for Drone operators who haven't had the benefit of growing up around aviation and other pilots so they can take their careers to the next level. This knowledge of the flight controller performance has to do with understanding the precision and susceptibility to magnetic anomalies.

Well, for that purpose you don't need the technical innards of DJI to teach what you want to teach. I'd recommend getting all these details for Betaflight, the Flight Controller used in most homebuilt quads.

Ask Google: "what is the pid loop frequency for betaflight"

Answer:
AI Overview

In Betaflight, the PID loop frequency is the rate at which the PID loop computations are performed, which is the math that controls flight. The frequency is usually locked to the gyro's optimal frequency, which depends on the gyro. For example, the MPU6000 uses 8KHz, while the BMI270 uses 3.2KHz. However, the PID loop frequency may need to be adjusted depending on the motor protocol and board type:
dshot300: If you try to set the PID loop frequency to 8KHz, it may reset to 4KHz because dshot300 doesn't send updates fast enough to use 8KHz. 4KHz is recommended to save CPU time.
F3 board with SPI: Use 8KHz.
F3 board with I squared C: Use 4KHz
 
  • Like
Reactions: Cookedinlh
Well, for that purpose you don't need the technical innards of DJI to teach what you want to teach. I'd recommend getting all these details for Betaflight, the Flight Controller used in most homebuilt quads.

Ask Google: "what is the pid loop frequency for betaflight"

Answer:
AI Overview

In Betaflight, the PID loop frequency is the rate at which the PID loop computations are performed, which is the math that controls flight. The frequency is usually locked to the gyro's optimal frequency, which depends on the gyro. For example, the MPU6000 uses 8KHz, while the BMI270 uses 3.2KHz. However, the PID loop frequency may need to be adjusted depending on the motor protocol and board type:
dshot300: If you try to set the PID loop frequency to 8KHz, it may reset to 4KHz because dshot300 doesn't send updates fast enough to use 8KHz. 4KHz is recommended to save CPU time.
F3 board with SPI: Use 8KHz.
F3 board with I squared C: Use 4KHz
Thanks for that. I guess what it really comes down to is most systems internal clock speed and instruction cycle are multiples of the human feedback . . like collision avoidance. Do you know anything about Streaming Hybrid Architecture Vector Engine v2.0 (SHAVE v2.0) chips and if DJI uses them for Collision avoidance.? Seems to me the Mavic 2 & 3 Series have them.
 
Lycus Tech Mavic Air 3 Case

DJI Drone Deals

New Threads

Forum statistics

Threads
134,342
Messages
1,593,833
Members
162,922
Latest member
brenthconroy