Nach Umstieg auf Multiwii 2.3, kein gps Hold mehr

Kowalski

Neuer Benutzer
#1
hallo,

ich versuche gerade mit 2.3 klar zu kommen. allerdings funktioniert gps noch nicht so, wie es soll.
wenn ich versuche gps hold zu aktivieren, dann erscheint nur gps home, obwohl ich es bei diesem test gar nicht auf einen schalter gelegt habe.

bei der version 2.2, hatte ich dieses problem nicht.

ich benutze die fc multiwii pro. http://www.hobbyking.com/hobbyking/...i_PRO_Flight_Controller_w_MTK_GPS_Module.html




*********************** GPS **************************/
/**************************************************************************************/

//#define GPS_SIMULATOR

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

/* 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 code is NOT finished in this version, please DON'T USE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/* 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

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

//Enables the MSP_WP command set , which is used by WinGUI for displaying an setting up navigation
#define USE_MSP_WP

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

/* GPS navigation can control the heading */

// copter faces toward the navigation point, maghold must be enabled for it
#define NAV_CONTROLS_HEADING 1 //(**)
// true - copter comes in with tail first
#define NAV_TAIL_FIRST 0 //(**)
// true - when copter arrives to home position it rotates it's head to takeoff direction
#define NAV_SET_TAKEOFF_HEADING 1 //(**)

/* 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)
Also note, that maqgnetic declination changes with time, so recheck your value every 3-6 months */
#define MAG_DECLINATION 2.31f //(**)

// Adds a forward predictive filterig to compensate gps lag. Code based on Jason Short's lead filter implementation
#define GPS_LEAD_FILTER //(**)

// add a 5 element moving average filter to GPS coordinates, helps eliminate gps noise but adds latency comment out to disable
// use it with NMEA gps only
#define GPS_FILTERING //(**)

// if we are within this distance to a waypoint then we consider it reached (distance is in cm)
#define GPS_WP_RADIUS 100 //(**)

// Safe WP distance, do not start mission if the first wp distance is larger than this number (in meters)
// Also aborts mission if the next waypoint distance is more than this number
#define SAFE_WP_DISTANCE 200 //(**)

//Maximu allowable navigation altitude (in meters) automatic altitude control will not go above this height
#define MAX_NAV_ALTITUDE 50 //(**)

// minimum speed when approach waypoint
#define NAV_SPEED_MIN 80 // cm/sec //(**)
// maximum speed to reach between waypoints
#define NAV_SPEED_MAX 100 // cm/sec //(**)
// Slow down to zero when reaching waypoint (same as NAV_SPEED_MIN = 0)
#define NAV_SLOW_NAV 0 //(**)
// Weight factor of the crosstrack error in navigation calculations (do not touch)
#define CROSSTRACK_GAIN .4 //(**)
// Maximum allowable banking than navigation outputs
#define NAV_BANK_MAX 3000 //(**)

//Defines the RTH altitude. 0 means keep current alt during RTH (in meters)
#define RTH_ALTITUDE 8 //(**)
//Wait to reach RTH alt before start moving to home (0-no, 1-yes)
#define WAIT_FOR_RTH_ALT 1 //(**)
 

Goetz_Cologne

Erfahrener Benutzer
#2
Was ist das für eine GUI? Die scheint nicht Versionskompatibel zu sein...
Es muss immer die passende GUI zur MW-Version verwendet werden!
 

Dodger

Erfahrener Benutzer
#4
Das ist aber nur die Software-Version die auf die FC kommt, die Software auf deinem Handy/Tablet muss auch mit der 2.3er klar kommen. Leider kenne ich deine App da nicht, aber evtl. kann man da irgendwo auf MWC 2.3 umschalten ?

Also mit dem "Original" fährst du wohl am sichersten, und die Multiwii-Software kommt quasi von hier:
https://code.google.com/p/multiwii/downloads/list
Das MultiwiiConf ist allerdings nur fürn PC/Mac soweit ich weiß.
 

Kowalski

Neuer Benutzer
#5
ohje, da habe ich was falsch verstanden.
da ich im keller keinen empfang habe, benutze ich für draussen eine android version, mit der ich die daten vom fc auslesen kann.
die heisst multiwii ez-gui.
daran liegt es nicht. ich benutze schon die richtigen versionen. sowohl von der android version, wie von der pc version.
 

Dodger

Erfahrener Benutzer
#7
Ah ok, die Schalter-Belegung kannst du ja auch in der PC-Version am Boden testen... musst ja nicht am fliegen sein um zu sehen welche Funktion bei welchem Schalter aktiviert wird. Wenn die 2.3er PC-Software aber natürlich auch nur GPS Home anzeigt obwohl es nicht belegt ist... muss ich passen da ich kein GPS habe :)
 

Kowalski

Neuer Benutzer
#8
hab es gelöst.
also die programme zum auslesen waren schon richtig.
aber bei der config.h von hobbyking war wohl der wurm drin.
ich habe eine "saubere" config.h genommen und für mein fc angepasst. jetzt klappt es genauso wie ich es von 2.2 gewohnt war.
danke für die hilfe.
 

Anhänge

Zuletzt bearbeitet:
FPV1

Banggood

Oben Unten