AW: Verzweifel bei: GSP (Rushduino) und MultiWii (NanoWii)
sRogge: Das hast Du aufgespielt und angepasst?
http://code.google.com/p/rushd…=I2C_GPS_NAV.rar&can=2&q=
/* GPS Lead filter - predicts gps position based on the x/y speed. helps overcome the gps lag. */
#define GPS_LEAD_FILTER
/* Serial speed of the GPS */
#define GPS_SERIAL_SPEED 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 - MTK binary protocol with auto setup, load (AXN1.51_2722_3329_384.1151100.5.bin) firmware to the GPS module (MTK3329 chips only)
* With MTK and UBLOX you don't have to use GPS_FILTERING in multiwii code !!!
*
*/
//#define NMEA
//#define UBLOX
#define MTK
Das ist das bei meinem MTK3339, bei Dir müsste sowas sein:
//#define RUSHDUINO_GPS
//#define GPS_PROMINI_SERIAL // direct serial link from GPS to FC - record on SD
//#define GPS_I2C_WITH_SD // Not include PH and RTH (Based on EOSBANDI R11) - record on SD
#define GPS_I2C_WITHOUT_SD // include PH and RTH but not SD (Based on EOSBANDI R33)
Verkabelt hast Du am I2C? und auch mal im Sketch geschaut?
/********************************** I2C speed ************************************/
#define I2C_SPEED 100000L //100kHz normal mode, this value must be used for a genuine WMP
//#define I2C_SPEED 400000L //400kHz fast mode, it works only with some WMP clones
/**************************************************************************************/
/*********************** GPS **************************/
/**************************************************************************************/
/* GPS using a SERIAL port
only available on MEGA boards (this might be possible on 328 based boards in the future)
if enabled, define here the Arduino Serial port number and the UART speed
note: only the RX PIN is used, the GPS is not configured by multiwii
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 115200
//#define GPS_PROMINI_SERIAL 57600 // Will Autosense if GPS is connected when ardu boots
/* I2C GPS device made with an independant arduino + GPS device
including some navigation functions
contribution from EOSBandi http://code.google.com/p/i2c-gps-nav/
You have to use at least I2CGpsNav code r33 */
#define I2C_GPS
sRogge; zuendy:
schliesst doch einfach mal das GPS direkt an einen mitgelieferten FTDI Adapter an und schaut mal mit Putty drauf. (putty.exe)
Dann sollte das GPS zumindest schon mal Daten ausspucken und Ihr wisst dann die Baudrate, die Ihr vorher probiert habt.
P.S. Bei mir hört das Teil auf zu blinken, wenn er die Sat´s gefunden hat ... kann man aber konfigurieren in der FW
#define GPS_SERIAL 2 // should be 2 for flyduino v2. It's the serial port number on arduino MEGA -> hast Du schon mal eingestellt?
Baro und Mag hast Du für das nanowii, ansonsten macht das GPS keinen Sinn