|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.A_Attitude<AttitudePitch>
uavsim.datatypes.AttitudePitch
public class 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.
| 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 |
|---|
private static final double DEFAULT_PITCH
public static final AttitudePitch PITCH_0
public static final AttitudePitch PITCH_M10
public static final AttitudePitch PITCH_M20
public static final AttitudePitch PITCH_M30
public static final AttitudePitch PITCH_P10
public static final AttitudePitch PITCH_P20
public static final AttitudePitch PITCH_P30
| Constructor Detail |
|---|
public AttitudePitch()
public AttitudePitch(double angleDegrees)
angleDegrees - - the pitch, as defined in the class description| Method Detail |
|---|
public AttitudePitch add_(AttitudePitch pitch)
pitch - - the unit
protected void setAngle(double angleDegrees)
setAngle in class A_Attitude<AttitudePitch>angleDegrees - - the angle, which is internally normalized as defined in the class descriptionpublic AttitudePitch subtract_(AttitudePitch pitch)
pitch - - the unit
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||