

the area is a square region, represented as:

0,0	1,0

0,1	1,0


each side is 300nm = 54600m long.
the aeroplanes speed is
	100kt = 182km/h = 182000m/3600s= 50m/s = 100kt/300nm/(3600sec/h)= 9.26e-5 units 

	

the ndb's cone of silence is 1 nm= 0.003 units

as you get nearer to the ndb station, it should begin to rock
this starts at 5 nm= 0.016 units
the period of rocking is 2 seconds.
the ends of rocking are determined by the distance.
the nearer it gets, the more it rocks.

so, error= (5-dist)*5 degrees.

no rocking for now. ok.
instead, make an 'off' light for the thing.
or, show the distance to it.
or, print 'the ndb is rocking'
alright. the ndb rocks itself. this is because
it's never possible to hold the exact heading.
an error of 1-2 degrees will be present
the adf does what it's designed to do.
if you don't pass directly overhead the ndb station,
it will swing to show the corrected direction as you
get nearer.


double buffering:

	have two pixmaps each the size of the screen..
	when the switch is done, copy the drawn buffer
	onto the window..


scene_t :  {
	ndb_t *ndbs;
	plane_t *plane;
	double top,left;
	double w,h;
	int scale;
	
}



a scenario is:
	a set of ndb's
	a set of vor's
	a plane direction and position
	a goal

goals can be:
	ndb/vor'la
	onden yol takibi
	arkadan yol takibi
	mesafe olcumu
	bekleme
		
