corrected units on MTK test program

git-svn-id: https://arducopter.googlecode.com/svn/trunk@382 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
deweibel 2010-09-04 14:56:48 +00:00
parent 82052f95af
commit eb7b9f6d6e
1 changed files with 8 additions and 5 deletions

View File

@ -8,6 +8,9 @@
#include <GPS_MTK.h> // UBLOX GPS Library
#define T6 1000000
#define T7 10000000
void setup()
{
Serial.begin(38400);
@ -22,15 +25,15 @@ void loop()
{
Serial.print("GPS:");
Serial.print(" Lat:");
Serial.print(GPS.Lattitude);
Serial.print((float)GPS.Lattitude/T7, DEC);
Serial.print(" Lon:");
Serial.print(GPS.Longitude);
Serial.print((float)GPS.Longitude/T7, DEC);
Serial.print(" Alt:");
Serial.print((float)GPS.Altitude/100.0);
Serial.print((float)GPS.Altitude/100.0, DEC);
Serial.print(" GSP:");
Serial.print((float)GPS.Ground_Speed/100.0);
Serial.print((float)GPS.Ground_Speed/100.0, DEC);
Serial.print(" COG:");
Serial.print(GPS.Ground_Course/1000000);
Serial.print(GPS.Ground_Course/100.0, DEC);
Serial.print(" SAT:");
Serial.print((int)GPS.NumSats);
Serial.print(" FIX:");