public class UsvState extends StateVector
Modifier and Type | Field and Description |
---|---|
protected double |
dopplerSOGU
doppler sonar forward speed over the ground
|
protected double |
dopplerSOGV
doppler sonar lateral speed over the ground
|
protected double |
dopplerSTWU
doppler sonar forward speed through the water
|
protected double |
dopplerSTWV
doppler sonar lateral speed through the water
|
protected double |
propeller
port propeller setting (rpm)
|
protected double |
remainingPwr
remaining power available (percent battery or fuel)
|
protected double |
rudder
rudder setting (degrees)
|
protected double |
waterDepth
doppler sonar altitude above the bottom
|
Constructor and Description |
---|
UsvState(UsvExecution execution)
Constructor for a new state variable
|
Modifier and Type | Method and Description |
---|---|
double |
getDopplerSOGU() |
double |
getDopplerSOGV() |
double |
getDopplerSTWU() |
double |
getDopplerSTWV() |
double[] |
getExtraDisState() |
double |
getPropellerSetting() |
double |
getRemainingPower() |
double |
getRudderSetting() |
double |
getSpeed() |
double |
getWaterDepth() |
protected void |
reset()
Reset state vector values prior to repeating another simulation loop
|
void |
setDopplerSOGU(double newValue) |
void |
setDopplerSOGV(double newValue) |
void |
setDopplerSTWU(double newValue) |
void |
setDopplerSTWV(double newValue) |
void |
setPropellerSetting(double newValue) |
void |
setRemainingPower(double newValue) |
void |
setRudderSetting(double newValue) |
void |
setWaterDepth(double newValue) |
getP, getPhi, getPhiDot, getPsi, getPsiDot, getQ, getR, getSimulationTime, getTheta, getThetaDot, getU, getV, getVehicle, getW, getX, getXDot, getY, getYDot, getZ, getZDot, resetKinematics, setP, setPhi, setPhiDot, setPsi, setPsiDot, setQ, setR, setSimulationTime, setTheta, setThetaDot, setU, setV, setW, setX, setXDot, setY, setYDot, setZ, setZDot
protected double remainingPwr
protected double rudder
protected double propeller
protected double dopplerSTWU
protected double dopplerSTWV
protected double dopplerSOGU
protected double dopplerSOGV
protected double waterDepth
public UsvState(UsvExecution execution)
execution
- UsvExecution reference to usv to which state vector appliesprotected void reset()
reset
in class StateVector
public double getRemainingPower()
public double getSpeed()
public double getRudderSetting()
public double getPropellerSetting()
public double getDopplerSTWU()
public double getDopplerSTWV()
public double getDopplerSOGU()
public double getDopplerSOGV()
public double getWaterDepth()
public void setRemainingPower(double newValue)
newValue
- the remaining power (percent battery or fuel)public void setRudderSetting(double newValue)
newValue
- the usv rudder settingpublic void setPropellerSetting(double newValue)
newValue
- the usv port propeller settingpublic void setDopplerSTWU(double newValue)
newValue
- the usv doppler sonar forward speed through the waterpublic void setDopplerSTWV(double newValue)
newValue
- the usv doppler sonar lateral speed through the waterpublic void setDopplerSOGU(double newValue)
newValue
- the usv doppler sonar forward speed over the groundpublic void setDopplerSOGV(double newValue)
newValue
- the usv doppler sonar lateral speed over the groundpublic void setWaterDepth(double newValue)
newValue
- the usv fathometer reading (depth below the keel)public double[] getExtraDisState()
getExtraDisState
in class StateVector