12 | Program a PID controller to stabilize a drone

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

ความคิดเห็น • 11

  • @CTIN--NguyenQuyHaoNhien
    @CTIN--NguyenQuyHaoNhien ปีที่แล้ว +2

    I love these videos and the way you explain everything so thoroughly

  • @eraydurakk
    @eraydurakk 2 ปีที่แล้ว +4

    I am using derivative from measurement on my project. Because derivative from error generates "D kick" when setpoint changes rapidly. U should try. And u didnt mention that d term has to filtered properly with something like notch filter in order to not burn your motors and fly nice.
    250 Hz PID loop really slow for any size of drone. Increase it to 500 Hz and use oneshot125 ESC.
    Great work.

    • @P0K0
      @P0K0 2 ปีที่แล้ว

      How can I filter d term ? What does it mean ?

    • @carbonaeronautics
      @carbonaeronautics  ปีที่แล้ว +1

      Indeed, in part IV I explain that you need to use a low pass filter for the gyro measurement. The filter is set to 10 Hz in register 1A of the MPU6050. I did not try to filter the D term separately because the I did not yet experience motor or ESC issues, probably because the measurement itself is already filtered and the D term is not excessively big.

    • @gajakpop9493
      @gajakpop9493 ปีที่แล้ว

      ​@@carbonaeronautics I couldn't find the code with the link provided below can you help me out with it

    • @HoangMinhNguyen-0307
      @HoangMinhNguyen-0307 7 หลายเดือนก่อน

      same problem, if derivative the error, when quad nearly reach the setpoint, its will be divergence, but i dont know why.

  • @sandeeppatra4
    @sandeeppatra4 2 ปีที่แล้ว +4

    GREAT WORK SIR its a very good video which inspire me thank u

  • @fuhadrock6370
    @fuhadrock6370 ปีที่แล้ว +1

    Can you please tell me... That my drone just spinning when i increase the throttle....
    So whats that means..
    And what should do in pid controll

  • @thorverhoeven3426
    @thorverhoeven3426 7 หลายเดือนก่อน

    i can't find the full code on github please someone help

    • @rokasbarasa1
      @rokasbarasa1 5 หลายเดือนก่อน +1

      Skip to the next episode, the linked repo has the code there

  • @thorverhoeven3426
    @thorverhoeven3426 7 หลายเดือนก่อน

    i can't find the full code on github please someone help