Crius Neo-6 V3.0 und I2C-Nav

Karsten J.

Erfahrener Benutzer
#1
Hallo

Ich probiere schon seit längerer Zeit ein NEO-6 V3 Modul an einem CRIUS 2.5 zum Laufen zu bringen.
Ich komme da einfach nicht weiter. Könnte mir mal jmd. unter die Arme greifen ?
Es handelt sich um dieses Set
http://de.aliexpress.com/item/MWC-M...mbo-for-3D-FlightMWC-MultiWii/1911315593.html

Am I2C-NAV hab ich noch nichts gemacht.
Auf dem Crius läuft die MW2.3 mit diesen GPS-Einstellungen :
Code:
/**************************************************************************************/
  /***********************                  GPS                **************************/
  /**************************************************************************************/

    /* 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_PROMINI_SERIAL   // Will Autosense if GPS is connected when ardu boots.

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

   /* 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

    
    /* 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
    // If your I2C GPS board has Sonar support enabled
    //#define I2C_GPS_SONAR

    /* GPS data readed from Misio-OSD - GPS module connected to OSD, and MultiWii read GPS data from OSD - tested and working OK ! */
    //#define GPS_FROM_OSD

    /* 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 
      - No GPS FIX -> LED blink at speed of incoming GPS frames
      - Fix and sat no. bellow 5 -> LED off
      - Fix and sat no. >= 5 -> LED blinks, one blink for 5 sat, two blinks for 6 sat, three for 7 ... */
    #define GPS_LED_INDICATOR

    //#define USE_MSP_WP                        //Enables the MSP_WP command, which is used by WinGUI to display and log Home and Poshold positions

    //#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)

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

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


  /****
Jetzt hab ich gelesen, dass wenn die LED auf dem I2C-NAV im Sekundentakt blinkt, sie keine Daten vom GPS bekommt. Das tut sie...

Frage: Ich kann den FTDI ja nur an das blaue I2C-Nav Board anschließen: Komme ich darüber an die interne Firmware des GPS ran ? Ich vermute nicht... da müsste ich die 4 Kabel des GPS direkt anzapfen, richtig ?
-Was muss ich im GPS einstellen ?
-Was muss auf das I2CNav drauf und was muss dort eingestellt werden ?

Gruß Karsten

Edit: Habe nun auf das Nav-Board die Firmware I2C_GPS_NAV_v2_2 gemacht.
GPS ist angeschlossen und hat sogar einen 3d fix, nur leider blinkt die rote Lampe am I2CNav im Sekundentakt und in der Multiwii kommt auch nichts an...
Bitte um Hilfe
 
Zuletzt bearbeitet:

Karsten J.

Erfahrener Benutzer
#3
Yup.. Danke für den Link... habs mittlerweile hinbekommen.
Diese Zeile
#define GPS_BAUD 9600

musste ich auskommentieren....

Gruß Karsten
 

Karsten J.

Erfahrener Benutzer
#5
Ich hab das mit dem Programm Minigps gemacht. Wenn ich das nun umstelle auf 57600, bleibt der Wert dann im gps gespeichert?
Muss ja dann auch wieder das Prog im I2Cnav anpassen...
 

Karsten J.

Erfahrener Benutzer
#7
Ok. Habs umgestellt.
Funktioniert nun. Alle Schalter belegt.
GPS hold funktioniert ganz ok für Multiwii....
 
Zuletzt bearbeitet:
FPV1

Banggood

Oben Unten