5iMX宗旨:分享遥控模型兴趣爱好

5iMX.com 我爱模型 玩家论坛 ——专业遥控模型和无人机玩家论坛(玩模型就上我爱模型,创始于2003年)
查看: 2706|回复: 3
打印 上一主题 下一主题

MWC飞控2.2版本GPS程序编码如何修改 请高手赐教

[复制链接]
跳转到指定楼层
楼主
发表于 2013-3-18 08:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
MWC飞控2.2版本GPS程序编码如何修改? 我的GPS模块是 Ublox NEO-6M   谢谢了

欢迎继续阅读楼主其他信息

沙发
发表于 2013-3-18 08:47 | 只看该作者
    /* GPS using a SERIAL port
       if enabled, define here the Arduino Serial port number and the UART speed
       note: only the RX PIN is used in case of NMEA mode, the GPS is not configured by multiwii
       in NMEA mode the GPS must be configured to output GGA and RMC NMEA sentences (which is generally the default conf for most GPS devices)
       at least 5Hz update rate. uncomment the first line to select the GPS serial port of the arduino */
    #define GPS_SERIAL 2 // should be 2 for flyduino v2. It's the serial port number on arduino MEGA
    //#define GPS_BAUD   57600
    #define GPS_BAUD   115200


   /* GPS protocol
       NMEA  - Standard NMEA protocol GGA, GSA and RMC  sentences are needed
       UBLOX - U-Blox binary protocol, use the ublox config file (u-blox-config.ublox.txt) from the source tree
       MTK_BINARY16 and MTK_BINARY19 - MTK3329 chipset based GPS with DIYDrones binary firmware (v1.6 or v1.9)
       With UBLOX and MTK_BINARY you don't have to use GPS_FILTERING in multiwii code !!! */

   
    //#define NMEA
    #define UBLOX
    //#define MTK_BINARY16
    //#define MTK_BINARY19
    //#define INIT_MTK_GPS        // initialize MTK GPS for using selected speed, 5Hz update rate and GGA & RMC sentence or binary settings

    //#define GPS_PROMINI_SERIAL    57600 // Will Autosense if GPS is connected when ardu boots
3
发表于 2013-3-18 08:48 | 只看该作者
我是mega板,用的串口2
4
 楼主| 发表于 2013-3-18 14:12 | 只看该作者
abccbef 发表于 2013-3-18 08:48
我是mega板,用的串口2

麻烦你给发个完整的吧,什么都包括的,我想参考一下其他的设置,我这方向也乱套了

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

关闭

【站内推荐】上一条 /1 下一条

快速回复 返回顶部 返回列表