当前位置: 首页 > news >正文

网站建设明细表wordpress config.yaml

网站建设明细表,wordpress config.yaml,wordpress弹框,东光网站建设淘宝店铺装修目录 文章目录 目录摘要1.源码1.1源码路径1.2源码程序1.3源码功能 2.源码分析 摘要 本节主要记录PX4姿态误差计算过程#xff0c;欢迎批评指正。 1.源码 1.1源码路径 PX4-Autopilot/src/modules/mc_att_control/AttitudeControl/AttitudeControl.cpp1.2源码程序 matrix::…目录 文章目录 目录摘要1.源码1.1源码路径1.2源码程序1.3源码功能 2.源码分析 摘要 本节主要记录PX4姿态误差计算过程欢迎批评指正。 1.源码 1.1源码路径 PX4-Autopilot/src/modules/mc_att_control/AttitudeControl/AttitudeControl.cpp1.2源码程序 matrix::Vector3f AttitudeControl::update(const Quatf q) const {Quatf qd _attitude_setpoint_q;// calculate reduced desired attitude neglecting vehicles yaw to prioritize roll and pitchconst Vector3f e_z q.dcm_z();const Vector3f e_z_d qd.dcm_z();Quatf qd_red(e_z, e_z_d);if (fabsf(qd_red(1)) (1.f - 1e-5f) || fabsf(qd_red(2)) (1.f - 1e-5f)){// In the infinitesimal corner case where the vehicle and thrust have the completely opposite direction,// full attitude control anyways generates no yaw input and directly takes the combination of// roll and pitch leading to the correct desired yaw. Ignoring this case would still be totally safe and stable.qd_red qd;} else{// transform rotation from current to desired thrust vector into a world frame reduced desired attitudeqd_red * q;}// mix full and reduced desired attitudeQuatf q_mix qd_red.inversed() * qd;q_mix.canonicalize();// catch numerical problems with the domain of acosf and asinfq_mix(0) math::constrain(q_mix(0), -1.f, 1.f);q_mix(3) math::constrain(q_mix(3), -1.f, 1.f);qd qd_red * Quatf(cosf(_yaw_w * acosf(q_mix(0))), 0, 0, sinf(_yaw_w * asinf(q_mix(3))));// quaternion attitude control law, qe is rotation from q to qdconst Quatf qe q.inversed() * qd;// using sin(alpha/2) scaled rotation axis as attitude error (see quaternion definition by axis angle)// also taking care of the antipodal unit quaternion ambiguityconst Vector3f eq 2.f * qe.canonical().imag();// calculate angular rates setpointVector3f rate_setpoint eq.emult(_proportional_gain);// Feed forward the yaw setpoint rate.// yawspeed_setpoint is the feed forward commanded rotation around the world z-axis,// but we need to apply it in the body frame (because _rates_sp is expressed in the body frame).// Therefore we infer the world z-axis (expressed in the body frame) by taking the last column of R.transposed ( q.inversed)// and multiply it by the yaw setpoint rate (yawspeed_setpoint).// This yields a vector representing the commanded rotatation around the world z-axis expressed in the body frame// such that it can be added to the rates setpoint.if (std::isfinite(_yawspeed_setpoint)){rate_setpoint q.inversed().dcm_z() * _yawspeed_setpoint;}// limit ratesfor (int i 0; i 3; i){rate_setpoint(i) math::constrain(rate_setpoint(i), -_rate_limit(i), _rate_limit(i));}return rate_setpoint; }1.3源码功能 实现姿态误差计算得到目标角速度。 2.源码分析 对应的PDF下载地址 下载地址
http://www.hkea.cn/news/14579708/

相关文章:

  • 2021给个最新网站手工企业网站模板
  • 用人名做网站域名wordpress 手机不显示内容
  • 网站后台界面设计汕头网站公司
  • 宁波有没有开发网站的公司网页制作流程一共有几步
  • 京东网站开发多少钱网站建设所用软件
  • 义乌网站建设优化案例网站备案中打不开
  • wordpress做管理网站津南区提供网站建设协议
  • 谷歌俄语网站自己做网站需要多少钱
  • 做旅游网站需要什么工程公司的经营范围
  • 做城市网站的标语主题 外贸网站 模板下载
  • 天津站内关键词优化2345系统导航
  • 网站建设方案文本模板天津企业网站建设方案
  • 做直播网站要多大带宽wordpress会员注册插件
  • 大良营销网站建设价格WordPress如何建立手机网站
  • 巴中手机网站建设广州模板网站建设费用
  • 网站设计制作费罗湖商城网站建设多少钱
  • 网站建设安全规划ps做网站尺寸多少像素
  • 中小开网站wordpress开发周期
  • 甘肃省住房和城乡建设厅注册中心网站大数据平台
  • 网站开发与设计 信科wordpress技术教程
  • 网站超级推广乐清网站建设乐清
  • 网站禁止ping网站浏览思路
  • 外贸免费开发网站模板杭州教育培训网站建设
  • collectfrom企业网站模版远程教育网站开发
  • 网站建设玖金手指谷哥十深圳市龙岗区住房和建设局网站
  • 行业协会网站织梦模板学院网站建设投标
  • 怎么给人介绍自己做的网站wordpress 点餐
  • 庆阳做网站的公司机关门户网站建设意义
  • html网站开发目标关注公众号一单一结兼职
  • 用新域名做网站排名快吗广州服装网站建设