uavsim.datatypes
Class AttitudePitch

java.lang.Object
  extended by uavsim.datatypes.A_Attitude<AttitudePitch>
      extended by uavsim.datatypes.AttitudePitch
All Implemented Interfaces:
java.lang.Comparable<AttitudePitch>, I_Unitable<AttitudePitch>

public class AttitudePitch
extends A_Attitude<AttitudePitch>

Defines the pitch degree of freedom of an attitude on the interval [+180,-180) navigational degrees, with 0 being nose level. The equivalent mathematical interval [0,360) is usable, although it is not consistent with the standard aviation and engineering definition.

Author:
Dan Tappan [18.06.11]

Field Summary
private static double DEFAULT_PITCH
          the default pitch
static AttitudePitch PITCH_0
          predefined common pitches
static AttitudePitch PITCH_M10
           
static AttitudePitch PITCH_M20
           
static AttitudePitch PITCH_M30
           
static AttitudePitch PITCH_P10
           
static AttitudePitch PITCH_P20
           
static AttitudePitch PITCH_P30
           
 
Fields inherited from class uavsim.datatypes.A_Attitude
_angleDegrees
 
Constructor Summary
AttitudePitch()
          Creates a pitch object at 0 degrees.
AttitudePitch(double angleDegrees)
          Creates a pitch object.
 
Method Summary
 AttitudePitch add_(AttitudePitch pitch)
          Adds another unit to this one.
protected  void setAngle(double angleDegrees)
          Sets the roll angle.
 AttitudePitch subtract_(AttitudePitch pitch)
          Subtract another unit from this one.
 java.lang.String toString()
          
 
Methods inherited from class uavsim.datatypes.A_Attitude
compareTo, getAngleMathematical, getAngleNavigational, getAngleRadians, getValue_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PITCH

private static final double DEFAULT_PITCH
the default pitch

See Also:
Constant Field Values

PITCH_0

public static final AttitudePitch PITCH_0
predefined common pitches


PITCH_M10

public static final AttitudePitch PITCH_M10

PITCH_M20

public static final AttitudePitch PITCH_M20

PITCH_M30

public static final AttitudePitch PITCH_M30

PITCH_P10

public static final AttitudePitch PITCH_P10

PITCH_P20

public static final AttitudePitch PITCH_P20

PITCH_P30

public static final AttitudePitch PITCH_P30
Constructor Detail

AttitudePitch

public AttitudePitch()
Creates a pitch object at 0 degrees.


AttitudePitch

public AttitudePitch(double angleDegrees)
Creates a pitch object.

Parameters:
angleDegrees - - the pitch, as defined in the class description
Method Detail

add_

public AttitudePitch add_(AttitudePitch pitch)
Adds another unit to this one.

Parameters:
pitch - - the unit
Returns:
the result as a new unit

setAngle

protected void setAngle(double angleDegrees)
Sets the roll angle.

Specified by:
setAngle in class A_Attitude<AttitudePitch>
Parameters:
angleDegrees - - the angle, which is internally normalized as defined in the class description

subtract_

public AttitudePitch subtract_(AttitudePitch pitch)
Subtract another unit from this one.

Parameters:
pitch - - the unit
Returns:
the result as a new unit

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object