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

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

MWC GPS 无响应

[复制链接]
跳转到指定楼层
楼主
发表于 2014-6-16 22:04 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
连接好了线路,GPS指示灯正常,I2C板子上的指示灯每秒三次的频率闪烁,证明型号已经正常
但是在GUI界面中抓不到GPS信号,如图

GPS配置如下

config.h

  1. /**************************************************************************************/
  2.   /***********************                  GPS                **************************/
  3.   /**************************************************************************************/

  4.     /* GPS using a SERIAL port
  5.        if enabled, define here the Arduino Serial port number a n d the UART speed
  6.        note: only the RX PIN is used in case of NMEA mode, the GPS is not configured by multiwii
  7.        in NMEA mode the GPS must be configured to output GGA a n d RMC NMEA sentences (which is generally the default conf for most GPS devices)
  8.        at least 5Hz update rate. uncomment the first line to select the GPS serial port of the arduino */
  9.       
  10.     //#define GPS_SERIAL 2         // should be 2 for flyduino v2. It's the serial port number on arduino MEGA
  11.     //#define GPS_PROMINI_SERIAL   // Will Autosense if GPS is connected when ardu boots.

  12.     // avoid using 115200 baud because with 16MHz arduino the 115200 baudrate have more than 2% speed error (57600 have 0.8% error)
  13.     #define GPS_BAUD   115200

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

  19.    
  20.     //#define NMEA
  21.     #define UBLOX
  22.     //#define MTK_BINARY16
  23.     //#define MTK_BINARY19
  24.     //#define INIT_MTK_GPS        // initialize MTK GPS for using selected speed, 5Hz update rate a n d GGA & RMC sentence or binary settings

  25.    
  26.     /* I2C GPS device made with an independant arduino + GPS device
  27.        including some navigation functions
  28.        contribution from EOSBa n di   http://code.google.com/p/i2c-gps-nav/
  29.        You have to use at least I2CGpsNav code r33 */
  30.     #define I2C_GPS
  31.     // If your I2C GPS board has Sonar support enabled
  32.     //#define I2C_GPS_SONAR

  33.     /* GPS data readed from Misio-OSD - GPS module connected to OSD, a n d MultiWii read GPS data from OSD - tested a n d working OK ! */
  34.     //#define GPS_FROM_OSD

  35.     /* indicate a valid GPS fix with at least 5 satellites by flashing the LED  - Modified by MIS - Using stable LED (YELLOW on CRIUS AIO) led work as sat number indicator
  36.       - No GPS FIX -> LED blink at speed of incoming GPS frames
  37.       - Fix a n d sat no. bellow 5 -> LED off
  38.       - Fix a n d sat no. >= 5 -> LED blinks, one blink for 5 sat, two blinks for 6 sat, three for 7 ... */
  39.     #define GPS_LED_INDICATOR

  40.     //#define USE_MSP_WP                        //Enables the MSP_WP comma n d, which is used by WinGUI to display a n d log Home a n d Poshold positions

  41.     //#define DONT_RESET_HOME_AT_ARM             // HOME position is reset at every arm, uncomment it to prohibit it (you can set home position with GyroCalibration)

  42.     /* GPS navigation can control the heading */
  43.    
  44.     #define NAV_CONTROLS_HEADING       true      // copter faces toward the navigation point, maghold must be enabled for it
  45.     #define NAV_TAIL_FIRST             false     // true - copter comes in with tail first
  46.     #define NAV_SET_TAKEOFF_HEADING    true      // true - when copter arrives to home position it rotates it's head to takeoff direction
  47.    
  48.    
  49.     /* Get your magnetic declination from here : http://magnetic-declination.com/
  50.        Convert the degree+minutes into decimal degree by ==> degree+minutes*(1/60)
  51.        Note the sign on declination it could be negative or positive (WEST or EAST) */
  52.     //#define MAG_DECLINATION  3.96f              //For Budapest Hungary.
  53.     #define MAG_DECLINATION  1.61f   //(**)

  54.     #define GPS_LEAD_FILTER                      // Adds a forward predictive filterig to compensate gps lag. Code based on Jason Short's lead filter implementation
  55.    
  56.     //#define GPS_FILTERING                        // add a 5 element moving average filter to GPS coordinates, helps eliminate gps noise but adds latency comment out to disable
  57.     #define GPS_WP_RADIUS              200       // if we are within this distance to a waypoint then we consider it reached (distance is in cm)
  58.     #define NAV_SLEW_RATE              30        // Adds a rate control to nav output, will smoothen out nav angle spikes
复制代码

请问有人遇到过没,请指导下

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

沙发
发表于 2014-6-17 09:52 | 只看该作者
你插GPS的同时还插数传了吗..
3
 楼主| 发表于 2014-6-17 10:05 | 只看该作者
没有,就GPS
4
发表于 2014-6-18 18:54 | 只看该作者
同问,帮顶一下

来自安卓客户端
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

关闭

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

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