]> git.mxchange.org Git - flightgear.git/commit
DME units report a distance based on the assumption that the ground station
authorcurt <curt>
Wed, 9 Jun 2004 20:21:18 +0000 (20:21 +0000)
committercurt <curt>
Wed, 9 Jun 2004 20:21:18 +0000 (20:21 +0000)
commit6c8f7fab01375b0204c5759d8ae75fe99d4da5e1
tree896bf60c9c009e9b7606fe907296518a297cd760
parent225298a09e450821f1b620f7097cc282d56f005f
DME units report a distance based on the assumption that the ground station
will delay it's reply by 50ms.  The ground station can change it's reply delay
to trick the airborn dme unit into reporting a distance that is offset from
the true distance by some constant value.  In FG we model this by subtracting
a fixed distance from the actual distance.

It is thus possible in our implimentation for the displayed distance to become
negative.  This patch clamp DME distance to a minimum value of 0.00 so it can
never go negative.
src/Cockpit/dme.cxx
src/Instrumentation/dme.cxx