首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ardu IMU向Arduino发送数据

Ardu IMU向Arduino发送数据
EN

Stack Overflow用户
提问于 2011-02-04 12:37:11
回答 1查看 2.1K关注 0票数 3

我刚买了一个ArduIMU,我正试着把数据发送给Arduino。我定制了首选项,它们在这里。

代码语言:javascript
复制
#define BOARD_VERSION 2 // 1 For V1 and 2 for V2
#define GPS_CONNECTION 0 // 0 for GPS pins, 1 for programming pins
// GPS Type Selection - Note Ublox or MediaTek is recommended.  Support for NMEA is limited.
#define GPS_PROTOCOL 1    // 1 - NMEA,  2 - EM406,  3 - Ublox, 4 -- MediaTek  
// Enable Air Start uses Remove Before Fly flag - connection to pin 6 on ArduPilot 
#define ENABLE_AIR_START 0  //  1 if using airstart/groundstart signaling, 0 if not
#define GROUNDSTART_PIN 8    //  Pin number used for ground start signal (recommend 10 on v1 and 8 on v2 hardware)
/*Min Speed Filter for Yaw drift Correction*/
#define SPEEDFILT 2 // >1 use min speed filter for yaw drift cancellation (m/s), 0=do not use speed filter
/*For debugging propurses*/
#define PRINT_DEBUG 0   //Will print Debug messages
//OUTPUTMODE=1 will print the corrected data, 0 will print uncorrected data of the gyros (with drift), 2 will print accelerometer only data
#define OUTPUTMODE 1
#define PRINT_DCM 1     //Will print the whole direction cosine matrix
#define PRINT_ANALOGS 1 //Will print the analog raw data
#define PRINT_EULER 1   //Will print the Euler angles Roll, Pitch and Yaw
#define PRINT_GPS 0     //Will print GPS data
#define PRINT_BINARY 1  //Will print binary message and suppress ASCII messages (above)
#define PERFORMANCE_REPORTING 0  //Will include performance reports in the binary output ~ 1/2 min
#define MAGNETIC_DECLINATION 2.15    // corrects magnetic bearing to true north    

好的,我将二进制模式设置为"1“,而不是ASCII模式("0")。如何读取ArduIMU发送给Arduino的数据并对其进行解码?

解决方案:

查看我的博客,我在Arduino上写了一篇关于如何从ArduIMU读取二进制数据的文章。

如何从ArduIMU - Codesigns.it读取二进制数据

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-02-15 23:17:04

如何从ArduIMU读取二进制数据 :)

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4898044

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档