org.mbari.siam.moos.deployed
Class SidearmPowerPort

java.lang.Object
  extended by org.mbari.siam.moos.deployed.SidearmPowerPort
All Implemented Interfaces:
PowerPort

public class SidearmPowerPort
extends java.lang.Object
implements PowerPort


Constructor Summary
SidearmPowerPort(java.lang.String name)
           
SidearmPowerPort(java.lang.String name, DpaBoard.DpaChannel c)
           
 
Method Summary
protected  void commPowerOff()
          Turn off communications to instrument.
protected  void commPowerOn()
          Turn on communications to instrument.
protected  void commTxHiPower()
          Set communications TX to high power
protected  void commTxLoPower()
          Set communications TX to low power
protected  void connectCommGround()
          Connect communications ground.
protected  void connectInstrumentPower()
          Connect instrument power.
 void connectPower()
          Connect instrument to power.
 void disableCommunications()
          Disable communications
 void disconnectPower()
          Disconnect instrument from power.
 void enableCommunications()
          Enable communications
 int getChannelControlReg()
          Read channel control register
 void getCommsState()
          Read comms state (relay=CON|ISO,power=ON|OFF)
 float getCurrentLevel()
          Get the current level of the DpaChannel in amps.
 int getCurrentLimit()
          Get current limit on port.
 int getInterruptControlReg()
          Read interrupt register
 java.lang.String getName()
          Return name.
 void getPowerState()
          Read power state (relay=CON|ISO,power=ON|OFF)
 int getRelayReg()
          Read relay register
 java.lang.String getStatusMessage()
          Get status message.
 java.lang.String getStatusSummaryMessage()
          Get status summary message.
 float getTemperature()
          Get heatsink temperature (deg C).
 java.lang.String getTerseStatus()
          Get a terse status message
 float getVoltageLevel()
          Get the voltage level of the DpaChannel in volts.
 void initialize()
          Initialize the port.
protected  void instrumentPowerOff()
          Turn off power to instrument.
protected  void instrumentPowerOn()
          Turn on power to instrument.
 boolean isLeftChannel()
          If left-side channel, return true.
protected  void isolateCommGround()
          Isolate communications ground.
protected  void isolateInstrumentPower()
          Isolate instrument power.
 void isolatePort()
          Isolate comms and power from port.
 void resetStatus()
          Reset status.
 void setCommsMode(CommsMode commsMode)
          Set communications mode (RS422,RS485,RS232) satisfies InstrumentPort interface
 void setCurrentLimit(int currentLimit)
          Set current limit on port.
 void setDpaChannel(DpaBoard.DpaChannel c)
          Set DpaChannel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SidearmPowerPort

public SidearmPowerPort(java.lang.String name,
                        DpaBoard.DpaChannel c)

SidearmPowerPort

public SidearmPowerPort(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Return name.

Specified by:
getName in interface PowerPort

setDpaChannel

public void setDpaChannel(DpaBoard.DpaChannel c)
Set DpaChannel.


initialize

public void initialize()
Initialize the port.

Specified by:
initialize in interface PowerPort

getCurrentLimit

public int getCurrentLimit()
                    throws NotSupportedException
Get current limit on port.

Specified by:
getCurrentLimit in interface PowerPort
Throws:
NotSupportedException

getVoltageLevel

public float getVoltageLevel()
Get the voltage level of the DpaChannel in volts.

Specified by:
getVoltageLevel in interface PowerPort

getRelayReg

public int getRelayReg()
Read relay register


getChannelControlReg

public int getChannelControlReg()
Read channel control register


getInterruptControlReg

public int getInterruptControlReg()
Read interrupt register


getPowerState

public void getPowerState()
Read power state (relay=CON|ISO,power=ON|OFF)


getCommsState

public void getCommsState()
Read comms state (relay=CON|ISO,power=ON|OFF)


getCurrentLevel

public float getCurrentLevel()
Get the current level of the DpaChannel in amps.

Specified by:
getCurrentLevel in interface PowerPort

setCurrentLimit

public void setCurrentLimit(int currentLimit)
                     throws RangeException
Set current limit on port.

Specified by:
setCurrentLimit in interface PowerPort
Throws:
RangeException

enableCommunications

public void enableCommunications()
Enable communications

Specified by:
enableCommunications in interface PowerPort

disableCommunications

public void disableCommunications()
Disable communications

Specified by:
disableCommunications in interface PowerPort

connectPower

public void connectPower()
Connect instrument to power.

Specified by:
connectPower in interface PowerPort

disconnectPower

public void disconnectPower()
Disconnect instrument from power.

Specified by:
disconnectPower in interface PowerPort

isolatePort

public void isolatePort()
Isolate comms and power from port.

Specified by:
isolatePort in interface PowerPort

instrumentPowerOn

protected void instrumentPowerOn()
Turn on power to instrument.


instrumentPowerOff

protected void instrumentPowerOff()
Turn off power to instrument.


commPowerOn

protected void commPowerOn()
Turn on communications to instrument.


commPowerOff

protected void commPowerOff()
Turn off communications to instrument.


commTxHiPower

protected void commTxHiPower()
Set communications TX to high power


commTxLoPower

protected void commTxLoPower()
Set communications TX to low power


isolateInstrumentPower

protected void isolateInstrumentPower()
Isolate instrument power.


connectInstrumentPower

protected void connectInstrumentPower()
Connect instrument power.


isolateCommGround

protected void isolateCommGround()
Isolate communications ground.


connectCommGround

protected void connectCommGround()
Connect communications ground.


getTemperature

public float getTemperature()
Get heatsink temperature (deg C).

Specified by:
getTemperature in interface PowerPort

getStatusMessage

public java.lang.String getStatusMessage()
Get status message.

Specified by:
getStatusMessage in interface PowerPort

getStatusSummaryMessage

public java.lang.String getStatusSummaryMessage()
Get status summary message.

Specified by:
getStatusSummaryMessage in interface PowerPort

getTerseStatus

public java.lang.String getTerseStatus()
Get a terse status message

Specified by:
getTerseStatus in interface PowerPort

resetStatus

public void resetStatus()
Reset status.

Specified by:
resetStatus in interface PowerPort

isLeftChannel

public boolean isLeftChannel()
If left-side channel, return true. Else return false.


setCommsMode

public void setCommsMode(CommsMode commsMode)
Set communications mode (RS422,RS485,RS232) satisfies InstrumentPort interface

Specified by:
setCommsMode in interface PowerPort


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.