On 10/23/09 02:40, James Turner wrote:
> .... I want to add  
> a realistic mode, where the GPS indicated position had some error /  
> lack of precision. 

> What do people suggest?

Please take a look at this data:
  http://www.av8n.com/fly/img48/gps-random-walk.png

The data looks reasonably realistic, i.e. reminiscent of
real GPS data I've seen.



The model is very simple and robust:
  -- The acceleration is a random number, uniform on a
   bounded interval.
  -- The velocity is the integral (running sum) of the
   acceleration.  We use a _leaky_ integrator so that
   the velocity remains bounded.  It is a moderately
   smooth function of time.
  -- The position is the integral (running sum) of the
   velocity.  Again we use a leaky integrator so that
   the position remains bounded.  It is a smooth function
   of time.

If you want to play with the parameters, you can use this
spreadsheet:
  http://www.av8n.com/fly/gps-random-walk.xls

I'll let you write the c++ code;  it's only a few lines.


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to