uavsim.datatypes
Class AttitudeRoll

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

public class AttitudeRoll
extends A_Attitude<AttitudeRoll>

Defines the roll element of an attitude on the interval [+180,-180] navigational degrees, with 0 being wings 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_ROLL
          the default roll
static AttitudeRoll ROLL_0
          predefined common rolls
static AttitudeRoll ROLL_M10
           
static AttitudeRoll ROLL_M20
           
static AttitudeRoll ROLL_M30
           
static AttitudeRoll ROLL_M45
           
static AttitudeRoll ROLL_M60
           
static AttitudeRoll ROLL_M90
           
static AttitudeRoll ROLL_P10
           
static AttitudeRoll ROLL_P20
           
static AttitudeRoll ROLL_P30
           
static AttitudeRoll ROLL_P45
           
static AttitudeRoll ROLL_P60
           
static AttitudeRoll ROLL_P90
           
 
Fields inherited from class uavsim.datatypes.A_Attitude
_angleDegrees
 
Constructor Summary
AttitudeRoll()
          Creates a roll object at 0 degrees.
AttitudeRoll(double angleDegrees)
          Creates a roll object.
 
Method Summary
 AttitudeRoll add_(AttitudeRoll roll)
          Adds another unit to this one.
protected  void setAngle(double angleDegrees)
          Sets the roll angle.
 AttitudeRoll subtract_(AttitudeRoll roll)
          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_ROLL

private static final double DEFAULT_ROLL
the default roll

See Also:
Constant Field Values

ROLL_0

public static final AttitudeRoll ROLL_0
predefined common rolls


ROLL_M10

public static final AttitudeRoll ROLL_M10

ROLL_M20

public static final AttitudeRoll ROLL_M20

ROLL_M30

public static final AttitudeRoll ROLL_M30

ROLL_M45

public static final AttitudeRoll ROLL_M45

ROLL_M60

public static final AttitudeRoll ROLL_M60

ROLL_M90

public static final AttitudeRoll ROLL_M90

ROLL_P10

public static final AttitudeRoll ROLL_P10

ROLL_P20

public static final AttitudeRoll ROLL_P20

ROLL_P30

public static final AttitudeRoll ROLL_P30

ROLL_P45

public static final AttitudeRoll ROLL_P45

ROLL_P60

public static final AttitudeRoll ROLL_P60

ROLL_P90

public static final AttitudeRoll ROLL_P90
Constructor Detail

AttitudeRoll

public AttitudeRoll()
Creates a roll object at 0 degrees.


AttitudeRoll

public AttitudeRoll(double angleDegrees)
Creates a roll object.

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

add_

public AttitudeRoll add_(AttitudeRoll roll)
Adds another unit to this one.

Parameters:
roll - - 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<AttitudeRoll>
Parameters:
angleDegrees - - the angle, which is internally normalized as defined in the class description

subtract_

public AttitudeRoll subtract_(AttitudeRoll roll)
Subtract another unit from this one.

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

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object