Struggling with GPS setup multiwii

This forum is dedicated to all issues and questions related to your individual setups and configurations
Post Reply
5mman
Posts: 5
Joined: Wed Sep 10, 2014 7:33 am

Struggling with GPS setup multiwii

Post by 5mman »

Hello, I'm new to Multiwii. I've just set up my quad and assigned flight Horizon flight mode and Mag and headfree etc to AUX channels but I'm struggling to get the GPS sorted. It doesn't show in the list of flight options. I've seen youtube videos showing people editing a config file and defining parameters but I can't see where that file is or how to edit it.

I'm not sure if I have 2.2 on the board or not. I'm unsure how to find out.

If the GPS is connected and is sending packets to the FC will GPS options automatically show up in the GUI?

Any help would be great. Cheers

brewski
Posts: 483
Joined: Tue Apr 29, 2014 12:04 am
Location: Cleveland Qld Australia

Re: Struggling with GPS setup multiwii

Post by brewski »

First up which flight controller do you have (328P or AtMega 2560 based) as this determines which version of MW you can run.
To find out which version your FC is running connect to MW Config & version is shown in upper left.
Check out the GPS Nav viewtopic.php?f=8&t=3989 as well as Beginners Guide viewtopic.php?f=18&t=5363
These together with Search function on forum should answer your questions
Basically you need to use Arduino IDE to edit the Config.h section relating to GPS to let your FC know what type of GPS you have & on which serial port.
If 328P based you will require a serial to I2C converter board for GPS.
Below is GPS part of my Config.h. I have a AtMega 2560 FC with UBlox-6M serial GPS
**************************************************************************************/
/*********************** 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 38400

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

Post Reply