首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 四旋翼 (简单可飞)

四旋翼 (简单可飞)

  • 资源大小:381.45 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: c 简单 旋翼

资 源 简 介

#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
VIP VIP
0.210481s