uavsim.datatypes
Class Course

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

public class Course
extends A_Attitude<Course>

Defines the course degree of freedom of an attitude on the interval [-180,+180] navigational degrees, with 0 being north.

Author:
Dan Tappan [17.07.11]

Field Summary
static Course COURSE_000
          predefined common courses
static Course COURSE_030
           
static Course COURSE_060
           
static Course COURSE_090
           
static Course COURSE_120
           
static Course COURSE_150
           
static Course COURSE_180
           
static Course COURSE_210
           
static Course COURSE_240
           
static Course COURSE_270
           
static Course COURSE_300
           
static Course COURSE_330
           
private static double DEFAULT_COURSE
          the default course
 
Fields inherited from class uavsim.datatypes.A_Attitude
_angleDegrees
 
Constructor Summary
Course()
          Creates a course object at 0 degrees.
Course(double angleDegrees)
          Creates a course object.
 
Method Summary
 Course add_(Course course)
          Adds another unit to this one.
protected  void setAngle(double angleDegrees)
          Sets the roll angle.
 Course subtract_(Course course)
          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

COURSE_000

public static final Course COURSE_000
predefined common courses


COURSE_030

public static final Course COURSE_030

COURSE_060

public static final Course COURSE_060

COURSE_090

public static final Course COURSE_090

COURSE_120

public static final Course COURSE_120

COURSE_150

public static final Course COURSE_150

COURSE_180

public static final Course COURSE_180

COURSE_210

public static final Course COURSE_210

COURSE_240

public static final Course COURSE_240

COURSE_270

public static final Course COURSE_270

COURSE_300

public static final Course COURSE_300

COURSE_330

public static final Course COURSE_330

DEFAULT_COURSE

private static final double DEFAULT_COURSE
the default course

See Also:
Constant Field Values
Constructor Detail

Course

public Course()
Creates a course object at 0 degrees.


Course

public Course(double angleDegrees)
Creates a course object.

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

add_

public Course add_(Course course)
Adds another unit to this one.

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

subtract_

public Course subtract_(Course course)
Subtract another unit from this one.

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

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object