Go Down

Topic: Altitude Command Neo-6M GPS (Read 96 times) previous topic - next topic

ZebH

Hi all,

I am using a Neo-6M GPS with the tinygps library.

I can read the Latitude and Longitude fine but am wondering what is the command to get the altitude?

Thanks,

Zeb
One of the most common programing problems is a misplaced bracket.

ZebH

......Would this work?
Code: [Select]

      Serial.println(gps.altitude.meters());


Thanks,

Zeb
One of the most common programing problems is a misplaced bracket.

jremington

#2
Aug 23, 2019, 12:57 am Last Edit: Aug 23, 2019, 01:06 am by jremington
The beauty of Arduino is that you can try things right away, and not have to post on the forum and wait for an answer.

We can't tell you the exact nature of the command, because it depends on how you have instanced the library. And you forgot to post your code.

For TinyGPS and most other popular libraries, the most reliable resource is the documentation and library source code.

ZebH

Hi jremington,

Sorry I didn't post the code! The reason I can't try it right away is because I don't have the circuit made up yet!

I have came across this though:
https://randomnerdtutorials.com/guide-to-neo-6m-gps-module-with-arduino/
And that has told me what I need to know!

Thanks for your help!

Zeb
One of the most common programing problems is a misplaced bracket.

jremington

#4
Aug 23, 2019, 05:28 am Last Edit: Aug 23, 2019, 05:29 am by jremington
Without "the circuit", how did you manage to do this? Connections are the same.
Quote
I can read the Latitude and Longitude fine

ZebH

Hi jremington,

That's because in another project I had read the Latitude and Longitude successfully using a Neo-6M GPS and the tinygps++ library!

Thanks for all your help!

Thanks again,

Zeb
One of the most common programing problems is a misplaced bracket.

Go Up