登录
首页 » c,c++ » stm32飞控

stm32飞控

于 2022-02-28 发布 文件大小:385.10 kB
0 82
下载积分: 2 下载次数: 1

代码说明:

很不错的飞控 float q0 = 1, q1 = 0, q2 = 0, q3 = 0;    // quaternion elements representing the estimated orientation float exInt = 0, eyInt = 0, ezInt = 0;    // scaled integral error void IMUupdate(T_int16_xyz *gyr, T_int16_xyz *acc, T_float_angle *angle) { float ax = acc->X,ay = acc->Y,az = acc->Z; float gx = gyr->X,gy = gyr->Y,gz = gyr->Z;   float norm; //  float hx, hy, hz, bx, bz;   float vx, vy, vz;// wx, wy, wz;   float ex, ey, ez;   // ???????????   float q0q0 = q0*q0;   float q0q1 = q0*q1;   float q0q2 = q0*q2; //  float q0q3 = q0*q3;   float q1q1 = q1*q1; //  float q1q2 = q1*q2;   float q1q3 = q1*q3;   float q2q2 = q2*q2;   float q2q3 = q2*q3;   float q3q3 = q3*q3; if(ax*ay*az==0)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 驱动基于LS164/HC164驱动的八段位数码管
    时间:2016/11/12 功能:驱动基于HC164驱动的八段位数码管 器件:八个共阴极数码管+8颗74LS164N 说明:将要显示的数据写入LED8[]-低位在左,高位在右 注意事项:由于移位寄存器的原理,导致高位数据会流经低位数据,      经过的LED不可避免的被点亮,在使用的过程中一定要使      扫描程序有一定的时间间隔.
    2022-01-31 07:07:43下载
    积分:1
  • linux,FTP下载
    linux,C,FTP操作源码,建立ftp连接,创建目录,下载文件,上传文件,断点续传等功能。 C代码实现,命令行操作。具体可参考源码。
    2022-07-26 04:22:51下载
    积分:1
  • S8-1
    设计一个窗体,上面布置一个Picture控件和两个命令按钮(标题为“装载”和“保存”),试按以下功能要求完成设计: (1) 程序运行,单击“装载”按钮,弹出一个文件打开对话框,从中选择一个图像文件,确定后该图像文件内容被装载到Picture控件内显示; (2)Picture控件有图像输出的情况下,单击“保存”按钮,弹出一个文件夹选择对话框,从中选择有效文件夹,确定后Picture控件内容会被保存到该文件夹里,文件命名为pNew.jpg(或bmp)。 (Design a form, which arranged a Picture control and two command buttons (titled "Load" and "save"), try to complete the design according to the following functional requirements: (1) program runs, click "Load" button to pop up a File Open dialog box, select an image file, to determine the contents of the file after the image is loaded into the Picture control in display (2) Picture control has an image output in the case, click the "Save" button, pop-up a folder selection dialog box, select valid folder, after the Picture control to determine the contents will be saved to the folder, the file named pNew.jpg (or bmp). )
    2020-10-31 11:29:55下载
    积分:1
  • 通过串口接收数据,并把接收到的数据保存到数据库中
    通过串口接收数据,并把接收到的数据保存到数据库中,
    2022-05-08 15:06:03下载
    积分:1
  • Aggregator code in micreogrid. (Transactive Grid)
    这是在分布网格中与DSO通信的聚合器的代码。
    2023-05-10 20:15:03下载
    积分:1
  • 电子钟的显示程序以及一个检验显示的程序,
    电子钟的显示程序以及一个检验显示的程序,-electronic clock display procedures and examinations revealed a process,
    2023-06-19 05:00:03下载
    积分:1
  • DBScan abc def guh aosk dasd
    Đị h hĩ 4Đối tượng p kết nối 西奥 mật độ (密度连接) thỏa Eps、 MinPts vớiĐối tượng q tồn tại đối tượng o 骚 cho cả p và q đều tới được 西奥 mật độ 慈 o。Tính chất:-Đối với các đối tượng tới được 西奥 mật độ với đối tượng khác、 泉 hệ密度连接 có tính phản xạ -泉 hệ 密度连接 có tính đối xứng。
    2022-08-12 12:35:20下载
    积分:1
  • 基于NX的汽车内饰件设计
    基于NX二次开发,实现汽车内饰件的doghouse的二次开发
    2022-05-23 13:05:28下载
    积分:1
  • 国外运用模板匹配法编写的人脸及表情识别软件
    国外某学者运用模板匹配法编写的人脸及表情识别软件,内含test图片,运用通过,是源代码。可放心下载。
    2022-04-09 23:49:54下载
    积分:1
  • avi文件封装类,包括avi文件的读写等常用操作,音频视频流等...
    avi文件封装类,包括avi文件的读写等常用操作,音频视频流等-avi file Packaging categories, including avi file read and write popular operation, streaming audio and video, etc.
    2022-03-16 22:08:21下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载