|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nau.cs.scu.Status
public class Status
This class embodies a status message that is sent to the MEU.
Field Summary | |
---|---|
(package private) boolean |
azimuthFoldBackError
True if the unit is experiencing an azimuth current fold back error |
(package private) double |
azimuthPosition
The current azimuth of the gimbal in radians |
(package private) boolean |
azimuthRDError
True if the unit is experiencing an azimuth RD error |
(package private) boolean |
elevationFoldBackError
True if the unit is experiencing an elevation current fold back error |
(package private) double |
elevationPosition
The current elevation of the gimbal in radians |
(package private) boolean |
elevationRDError
True if the unit is experiencing an elevation RD error |
(package private) boolean |
invalidCommandRecieved
True if the last command received from the MEU was invalid or malformed |
(package private) Mode |
mode
The mode the gimbal is in |
(package private) double |
negativeSoftStopPositionAzimuth
The location of the azimuth negative soft stop in radians |
(package private) double |
negativeSoftStopPositionElevation
The location of the elecation negative soft stop in radians |
(package private) boolean |
portAntennaSelected
True if the port antenna is selected, false if the starboard antenna is selected. |
(package private) double |
positiveSoftStopPositionAzimuth
The location of the azimuth positive soft stop in radians |
(package private) double |
positiveSoftStopPositionElevation
The location of the elevation postitive soft stop in radians |
(package private) boolean |
powerUpPassed
True if the BIT passed the last time it was run, false if the BIT failed the last time it was run |
(package private) boolean |
runningPowerUp
True if the unit is currently runnning the BIT, false otherwise |
(package private) int |
selectedSensor
The currently selected temperature sensor - 1 through 6 |
static byte |
START_CHARACTER
A constant indicating the first byte that is sent when sending a status packet over serial communications |
static int |
STATUS_PACKET_LENGTH
A constant indicating the length of a status byte packet as sent over a serial connection |
(package private) double |
temperature
The temperature of the selected temperature sensor in degrees Celsius |
(package private) boolean |
torquersEnabled
True if the torquers are enabled, false if they are disabled |
(package private) boolean |
vendorError0
True if the unit is experiencing a vendor defined error 0 |
(package private) boolean |
vendorError1
True if the unit is experiencing a vendor defined error 1 |
Constructor Summary | |
---|---|
Status()
Generic constructor for making empty Status objects. |
|
Status(byte[] packet)
Constructs a Status object from a Status byte packet. |
Method Summary | |
---|---|
static byte |
calculateChecksum(byte[] packet)
This is a utility method that calculates the checksum for a status byte packet. |
byte[] |
getAzimuthBytes()
This is a utility method that converts this Status object's current azimuth position into the appropriate 24 bit two's complement format as specified in the document. |
byte[] |
getElevationBytes()
This is a utility method that converts this Status object's current elevation position into the appropriate 24 bit two's complement format as specified in the document. |
byte |
getErrorStatusByte()
This is a utility method that composes all of the errors in this Status object into a single byte as specified in the Servo Controller Unit documentation. |
byte[] |
toBytes()
Converts this status object into its corresponding byte packet. |
java.lang.String |
toString()
Generate a string representing this status object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
Mode mode
double elevationPosition
double azimuthPosition
double positiveSoftStopPositionAzimuth
double negativeSoftStopPositionAzimuth
double positiveSoftStopPositionElevation
double negativeSoftStopPositionElevation
int selectedSensor
double temperature
boolean portAntennaSelected
boolean torquersEnabled
boolean runningPowerUp
boolean powerUpPassed
boolean invalidCommandRecieved
boolean elevationRDError
boolean azimuthRDError
boolean elevationFoldBackError
boolean azimuthFoldBackError
boolean vendorError1
boolean vendorError0
public static final int STATUS_PACKET_LENGTH
public static final byte START_CHARACTER
Constructor Detail |
---|
public Status(byte[] packet)
packet
- The bytes representing the current status.public Status()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public byte[] toBytes()
public byte[] getAzimuthBytes()
public byte[] getElevationBytes()
public byte getErrorStatusByte()
public static byte calculateChecksum(byte[] packet)
packet
- The byte packet to calculate the checksum for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |