uavsim.computers
Class VORComputer

java.lang.Object
  extended by uavsim.computers.A_NavigationComputer
      extended by uavsim.computers.VORComputer

public class VORComputer
extends A_NavigationComputer

Defines a navigation computer that links a VOR (very high frequency omnidirectional range) station, receiver, and instrument.

Author:
Dan Tappan [23.10.11]

Field Summary
private  VORLocalizerGlideslope _vorInstrument
          the VOR instrument
private  VORDMEReceiver _vorReceiver
          the VOR receiver
 
Fields inherited from class uavsim.computers.A_NavigationComputer
_chart
 
Constructor Summary
VORComputer(NavigationChart chart, VORDMEReceiver vorReceiver, VORLocalizerGlideslope vorInstrument)
          Creates a VOR computer.
 
Method Summary
 VORLocalizerGlideslope getVORInstrument()
          Gets the VOR instrument.
 VORDMEReceiver getVORReceiver()
          Gets the VOR receiver.
 java.lang.String toString()
          
 void update(SevenDOFDescriptor sevenDOFDescriptor)
          Updates the instrument based on the computed navigation information.
 
Methods inherited from class uavsim.computers.A_NavigationComputer
getNavigationChart, refresh
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_vorInstrument

private final VORLocalizerGlideslope _vorInstrument
the VOR instrument


_vorReceiver

private final VORDMEReceiver _vorReceiver
the VOR receiver

Constructor Detail

VORComputer

public VORComputer(NavigationChart chart,
                   VORDMEReceiver vorReceiver,
                   VORLocalizerGlideslope vorInstrument)
Creates a VOR computer.

Parameters:
chart - - the navigation chart
vorReceiver - - the VOR receiver
vorInstrument - - the VOR instrument
Method Detail

getVORInstrument

public VORLocalizerGlideslope getVORInstrument()
Gets the VOR instrument.

Returns:
the instrument

getVORReceiver

public VORDMEReceiver getVORReceiver()
Gets the VOR receiver.

Returns:
the receiver

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

update

public void update(SevenDOFDescriptor sevenDOFDescriptor)
Updates the instrument based on the computed navigation information.

Specified by:
update in class A_NavigationComputer
Parameters:
sevenDOFDescriptor - - the UAV 7-DOF descriptor