xs128控制mpu6050程序完整版.docVIP

  • 4
  • 0
  • 约1.19万字
  • 约 13页
  • 2023-11-11 发布于湖北
  • 举报
#include hidef.h /* common defines and macros */ #include derivative.h /* derivative-specific definitions */ #include math.h //Keil library #define uchar unsigned char #define uint unsigned int #define SMPLRT_DIV 0x19 //陀螺仪采样率,典型值:0x07(125Hz) #define CONFIG 0x1A //低通滤波频率,典型值:0x06(5Hz) #define GYRO_CONFIG 0x1B //陀螺仪自检及测量范围,典型值:0x18(不自检,2000deg/s) #define ACCEL_CONFIG 0x1C //加速计自检、测量范围及高通滤波频率,典型值:0x01(不自检,2G,5Hz) #define ACCEL_XOUT_H 0x3B #define ACCEL_XOUT_L 0x3C #define ACCEL_YOUT_H 0x3D #define ACCEL_YOUT_L 0x3E #define ACCEL_ZOUT_H 0x3F #define ACCEL_ZOUT_L 0x40 #define

文档评论(0)

1亿VIP精品文档

相关文档