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

四旋翼 (简单可飞)

于 2022-03-23 发布 文件大小:381.45 kB
0 49
下载积分: 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 个回复

  • 基于STM32LED显示
    在STM32F105和STM32F107互连型系列微控制器之前,意法半导体已经推出STM32基本型系列、增强型系列、USB基本型系列、互补型系列;新系列产品沿用增强型系列的72MHz处理频率。内存包括64KB到256KB闪存和 20KB到64KB嵌入式SRAM。新系列采用LQFP64、LQFP100和LFBGA100三种封装,不同的封装保持引脚排列一致性,结合STM32平台的设计理念,开发人员通过选择产品可重新优化功能、存储器、性能和引脚数量,以最小的硬件变化来满足个性化的应用需求。
    2022-07-25 16:08:06下载
    积分:1
  • 犯错
    DELPHI7运用编程150例 本书主要针对具有一定Delphi基础知识的读者,全书通过150个实例全面、深入地介绍了用Delphi 7开发应用程序的常用方法和技巧。全书共分为8章,主要讲解了用Delphi 7进行界面效果处理、图像处理、图形与多媒体开发、系统功能控制、文件处理、网络与数据库开发,以及组件应用等内容。这些实例简单实用、典型性强、功能突出,很多实例使用的技术稍加扩展可以解决同类问题。使用本书最好的方法是通过学习掌握实例中的技术或技巧,然后使用这些技术尝试实现更复杂的功能并应用到更多方面。 -err
    2022-05-13 20:19:04下载
    积分:1
  • WM_Example
    几个windows mobile开发实例程序(examples of windows mobile)
    2010-12-08 16:07:00下载
    积分:1
  • teste_com_2
    A simple test of RS232 communication between a computer and a surgical light dimmer
    2014-01-15 21:33:52下载
    积分:1
  • FFTandpowr
    利用MATLAB和VC共同开发的信号处理程序。(Using MATLAB and VC joint development of signal processing.)
    2010-05-31 23:56:30下载
    积分:1
  • 7
    说明:  相变UDF,包括质量传递和热量传递,能够进行气液相变的模拟(Phase transition UDF, including mass transfer and heat transfer, gas-liquid phase transition can be simulated)
    2013-09-23 15:06:01下载
    积分:1
  • windows LPK 无错劫持源码
    带网上开源的lpk.dll .cpp 主要功能:自定义劫持加用户 邮箱发信 传回用户名 dll劫持。同目录运行exe自动加载我们生成的lpk.dll 成功执行我们的自定义劫持的代码
    2022-10-23 00:35:03下载
    积分:1
  • Vibe3Pdiff_frame
    vibe 算法的改进,增加帧差法,可以去除第一帧的鬼影(Improved vibe algorithm, increasing the frame difference method, you can remove the ghost of the first frame)
    2021-03-29 11:29:11下载
    积分:1
  • c#中调用windows API
    在c#中调用windows API-the windows API call
    2022-01-28 16:30:35下载
    积分:1
  • CeChat
    说明:  wince串口实时聊天通讯程序。VS2005环境下的wince嵌入式源码例程。(real-time chat wince serial communication program. VS2005 environment wince embedded source routines.)
    2011-04-13 13:37:16下载
    积分:1
  • 696518资源总数
  • 105563会员总数
  • 11今日下载