1
$\begingroup$

I've been working on a quad copter for awhile now, recently I've finished the interface for PID tuning and its leading me to question several design decisions.

The quad uses a RaspberryPi as its pilot, the entire loop takes less than 20ms. IMU data is gathered, the throttle speeds are calculated, and then finally sent to an Arduino(micro) over an SPI interface. Where they are analogWrite(...), to each ESC.

Can a quadcopter fly with a loop that slow? 20ms = 50Hz?

$\endgroup$
1
  • $\begingroup$ in my application runs at 100 Hz (attitude controller), but in many papers I found up to 1 kHz. Pay attention that the update frequency of the velocity give by your GPS could lead to problems. It runs very slowly compared to the rest of the system. $\endgroup$ – Dave Jan 1 '15 at 8:36
2
$\begingroup$

As a rules of thumb, 50Hz is good. But you need to look at your rates. What is for example the maximum rate of rotation about "Z" or "yaw"? If the aircraft can spin at 50 revolutions per second then obviously a 50Hz loop is not going to work. Divide the 50Hz loop rate by the rates of movements about each axis

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.