标题: MWC飞控2.2版本GPS程序编码如何修改 请高手赐教 [打印本页] 作者: fufang001 时间: 2013-3-18 08:26 标题: MWC飞控2.2版本GPS程序编码如何修改 请高手赐教 MWC飞控2.2版本GPS程序编码如何修改? 我的GPS模块是 Ublox NEO-6M 谢谢了 作者: abccbef 时间: 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 作者: abccbef 时间: 2013-3-18 08:48
我是mega板,用的串口2 作者: fufang001 时间: 2013-3-18 14:12