登录
首页 » c » 四旋翼 (简单可飞)

四旋翼 (简单可飞)

于 2022-03-23 发布 文件大小:381.45 kB
0 77
下载积分: 2 下载次数: 1

代码说明:

#include   #include "newtype.h" #include "delay.h" #include "Clock.h" #include "timer.h" #include "pwm4.h" #include "uart1.h" #include "uart2.h" #include "I2C.h" #include "spi.h" #include "spi2.h" #include "adc1.h" #include "adc2.h" #include "capture1.h" #include "control.h" #include "rc.h" #include "IMU.h" /* u8 key_scan(void) { static u8 key_down=0; if(key_down==0 && (P2IN & BIT1==0 || P1IN & BIT1==0)) { key_down=1; delay_ms(10); if(P2IN & BIT1==0) return 1; if(P1IN & BIT1==0) return 2; }else if(P2IN & BIT1==1 && P1IN & BIT1==1) key_down=0; return 0; } */ u8 key_flag=0; u8 key_start=0; extern u8 updown; u8 i; void System_I

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

发表评论

0 个回复

  • jiawan
    连接乣VC影响选择题组如了;老爸 工程 形容人查 看 (ljggnlkghbnjui khjg )
    2015-05-26 22:43:58下载
    积分:1
  • 网络流量监控
    为了方便网络编程,90年代初,由Microsoft联合了其他几家公司共同制定了一套WINDOWS下的网络编程接口,即Windows Sockets规范,它不是一种网络协议,而是一套开放的、支持多种协议的Windows下的网络编程接口。本篇论文主要是介绍了在TCP/IP基础上利用winsock2对网卡进行编程,以达到网络流量监测的目的。论文首先介绍了TCP/IP协议,旨在介绍IP,TCP,UDP等比较重要的协议。主要是介绍IP头,TCP头,UDP头的特点,以便从IP头中可以获取源地址,目的地址,协议类型等信息。在随后的章节中提出了Socket的概念,Socket实际上提供了一个通信端口使所有拥有Socket的端口的计算机之间能够相互通信,在本论文中主要说明了socket的建立,监听和撤销的过程。具体到程序实现中,对网卡混杂模式的设置是通过原始套接字(raw socket)来实现的。为了让原始套接字能接受所有的数据,还需要通过将SOCK_RAW设置成SIO_RCVALL。对数据包的获取通过recv()函数来完成。最后要完成的工作就是对所捕获的IP数据包进行分析以提取出我们所需要的信息。在论文的最后是旨在说明进一步工作的展开。
    2022-07-16 08:12:45下载
    积分:1
  • JPEG
    完备详细的Jpeg编解码vc实现程序,编解码详尽易懂。(Complete detailed Jpeg codec vc realize procedures, detailed and understandable codec.)
    2008-05-28 10:13:35下载
    积分:1
  • FloorInd
    LCD floor indicator on MC68HC908AP32 CodeWarrior
    2012-03-14 19:33:07下载
    积分:1
  • curving
    利用此函数可以在最小二乘意义上解决非线性曲线拟合(数据 拟合)问题。也就是说,给定输入数据xdata,以及观测的输出数据ydata,找到系数x,使 得函数F(x,xdata)能够最好的拟合向量值(MLS method not only can be applied for the purpose of curve (or surface) fitting, but also curve (or surface) interpolation when compactly supported singular weighted function was used. The effective measure has been applied to eliminate singularity in MLS interpolation. In addition, the bad fitting or interpolation accuracy near the boundary was improved. )
    2014-08-06 10:00:13下载
    积分:1
  • shutdown
    说明:  VC++6.0编译,实现关机、重启、注销功能的实现(VC++6.0 compiler to achieve shutdown, restart, log off function of the realization)
    2011-04-12 20:06:48下载
    积分:1
  • Micrium-uCOSIII-LPC1768
    说明:  Micrium-uCOS3-LPC1768
    2019-12-26 03:19:25下载
    积分:1
  • SRMS
    学生学籍管理系统(the Student Management System)
    2004-12-15 16:40:39下载
    积分:1
  • mfc_ole_drawcli
    说明:  可从微软提供的sample找到这些代码 很不错的(from Microsoft to provide the sample code to find very good)
    2006-04-12 14:37:36下载
    积分:1
  • VCF 文件修饰符都
    将VCF文件从单个文件修改为独立文件的项目,
    2022-07-14 10:09:52下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载