Ublox U-center data through APM

Hello.

I have a Ublox unit from DIYdrones which is connected to my APM, which in turn is connected via USB to my PC.

I've uploaded the following code and GPS information can be seen through the serial monitor.

/*
  Example of GPS UBLOX library.
  Code by Jordi Mu�oz and Jose Julio. DIYDrones.com

  Works with Ardupilot Mega Hardware (GPS on Serial Port1)
  and with standard ATMega168 and ATMega328 on Serial Port 0
*/

#include <GPS_UBLOX.h> // UBLOX GPS Library

void setup()
{
  Serial.begin(57600);
  Serial.println("GPS UBLOX library test");
  GPS.Init();   // GPS Initialization
  delay(1000);
}
void loop()
{
  GPS.Read();
  if (GPS.NewData)  // New GPS data?
    {
    Serial.print("GPS:");
    Serial.print(" Time:");
    Serial.print(GPS.Time);
    Serial.print(" Fix:");
    Serial.print((int)GPS.Fix);
    Serial.print(" Lat:");
    Serial.print(GPS.Lattitude);
    Serial.print(" Lon:");
    Serial.print(GPS.Longitude);
    Serial.print(" Alt:");
    Serial.print(GPS.Altitude/1000.0);
    Serial.print(" Speed:");
    Serial.print(GPS.Ground_Speed/100.0);
    Serial.print(" Course:");
    Serial.print(GPS.Ground_Course/100000.0);
    Serial.println();
    GPS.NewData = 0; // We have readed the data
    }
  delay(20);
}


I then went ahead with the following http://code.google.com/p/ardupilot/wiki/ublox started u-center but nothing shows up.

Any idea where I'm going wrong?

Thanks


You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • 3D Robotics
    That's not designed to work with u-center. Just look at the data in the Arduino serial window.
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…