RiverRat  - An MIT iCampus project http://web.mit.edu/riverrat/

Main Page | Software Documentation | Hardware Documentation | People | Contact | Wiki

Main Page | Class Hierarchy | Class List | File List | Class Members

riverrat.DynamicMark Class Reference

Finished Prototype - A Mark that has a position sensor onboard. More...

Inheritance diagram for riverrat.DynamicMark:

riverrat.Mark riverrat.RaceObject List of all members.

Public Member Functions

 DynamicMark (int newid)
void update (Fix newfix)
 Updates the target's current position with a Fix.


Detailed Description

Finished Prototype - A Mark that has a position sensor onboard.

The first version of this class is complete.

Definition at line 8 of file DynamicMark.java.


Member Function Documentation

void riverrat.DynamicMark.update Fix  newfix  ) 
 

Updates the target's current position with a Fix.

Shifts the current position into the top of the track Vector, and updates the target's heading based on the previous position, if the heading has not already been defined in the argument Fix. The track Vector is managed to ensure that it stays the right size.

Parameters:
newfix a Fix with the new position

Reimplemented from riverrat.RaceObject.

Definition at line 17 of file DynamicMark.java.

References riverrat.Fix.setHeading().


The documentation for this class was generated from the following file:  

Brought to you by the RiverRat team.