Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:40 25 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : GPS position averaging

Author Message
vk4tec

Senior Member

Joined: 24/03/2012
Location: Australia
Posts: 239
Posted: 03:12am 25 Apr 2012
Copy link to clipboard 
Print this post

Hello

I would like to average my GPS location.

The numbers are like -27 and 153

Am I likely to strike a limit ?

Should I stop it averaging at a particular point ?

The averaging process as I know it is to add up samples and divide by the numeber of samples.

- Andrew -
Andrew Rich VK4TEC
www.tech-software.net
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3801
Posted: 07:25am 25 Apr 2012
Copy link to clipboard 
Print this post

I don't think you've given remotely enough info.

But... if you get successive numbers (in any data gathering/measuring) that are so wildly different then averaging would normally be a really bad idea. You'd want a way to reject those that are clearly garbage and then do (whatever) with what's left.

John
 
vk4tec

Senior Member

Joined: 24/03/2012
Location: Australia
Posts: 239
Posted: 07:42am 25 Apr 2012
Copy link to clipboard 
Print this post

1 Hz GPS

LAT is 27 deg

1 hour = 3600 samples

3600 X 27 = 97200

The PIC must be able to count up to 97200 to average in one hour

27 * 3600 = 97200 ( avg ) / 2600 = 27

To do 24 hours averaging.

27 * 3600 * 24 = 2,332,800 / 3600 * 24 = 27 deg

The worst number encountered in GPS is 180 degrees

180 deg * 3600 * 24 = 15,552,000 / 86400 = 180

So to average 24 hours of GPS data, the PIC has to be able to add up to

15,552,000 ( worst case )


Andrew Rich VK4TEC
www.tech-software.net
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3801
Posted: 04:22pm 25 Apr 2012
Copy link to clipboard 
Print this post

You want an integer with that range (to 15,552,000)? Yes, they are - comfortably.

John
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024