PID定高:

 

高度差:offset= Althold-EstAlt

由高度环得到速度:SetVel=EXT_P*error(offset)

 

vel_acc=accz_tmp*accscale*accsumT   (v=at)

vel=vel+vel_acc

bare_vel=(now_alt-old_Alt)/update_Frequency

得到当前速度:

vel_tmp=vel*0.9+bare_vel*0.1

 

得到速度差:

ErrorP=SetVel-vel_tmp

Result=P*ErrorP

ErrorI+=I*error

Result+=errorI

Result-=Int_D*(Z_tmp+Z_old)/512

无人机单个气压定高

























 



相关文章:

  • 2021-11-17
  • 2021-04-04
  • 2021-10-07
  • 2021-11-01
  • 2021-11-27
  • 2021-09-06
  • 2021-10-13
  • 2022-12-23
猜你喜欢
  • 2021-07-05
  • 2021-09-18
  • 2021-07-19
  • 2021-11-26
  • 2021-06-19
  • 2021-07-02
  • 2021-05-23
相关资源
相似解决方案