public class UgvState extends StateVector
Modifier and Type | Field and Description |
---|---|
protected double |
dopplerSOGU
Doppler forward speed over the ground
|
protected double |
dopplerSOGV
Doppler lateral lateral speed over the ground
|
protected double |
leftTrackCmd
commanded left track speed in meters per second
|
protected double |
leftTrackSpd
actual left track speed in meters per second
|
protected double |
remainingPwr
remaining power available (percent battery or fuel)
|
protected double |
rightTrackCmd
commanded right track speed in meters per second
|
protected double |
rightTrackSpd
actual right track speed in meters per second
|
Constructor and Description |
---|
UgvState(UgvExecution execution)
Constructor for a new state variable
|
Modifier and Type | Method and Description |
---|---|
double |
getDopplerSOGU() |
double |
getDopplerSOGV() |
double[] |
getExtraDisState() |
double |
getLeftTrackCmd() |
double |
getLeftTrackSpeed() |
double |
getRemainingPower() |
double |
getRightTrackCmd() |
double |
getRightTrackSpeed() |
double |
getSpeed() |
protected void |
reset()
Reset state vector values prior to repeating another simulation loop
|
void |
setDopplerSOGU(double newValue) |
void |
setDopplerSOGV(double newValue) |
void |
setLeftTrackCmd(double newValue) |
void |
setLeftTrackSpeed(double newValue) |
void |
setRemainingPower(double newValue) |
void |
setRightTrackCmd(double newValue) |
void |
setRightTrackSpeed(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 leftTrackCmd
protected double rightTrackCmd
protected double leftTrackSpd
protected double rightTrackSpd
protected double dopplerSOGU
protected double dopplerSOGV
public UgvState(UgvExecution execution)
execution
- TrackedUgvExecution reference to ugv to which state vector appliesprotected void reset()
StateVector
reset
in class StateVector
public double getRemainingPower()
public double getSpeed()
public double getLeftTrackSpeed()
public double getRightTrackSpeed()
public double getLeftTrackCmd()
public double getRightTrackCmd()
public double getDopplerSOGU()
public double getDopplerSOGV()
public void setRemainingPower(double newValue)
newValue
- the remaining power (percent battery or fuel)public void setLeftTrackCmd(double newValue)
newValue
- the new commanded left track speed in meters per secondpublic void setRightTrackCmd(double newValue)
newValue
- the new commanded right track speed in meters per secondpublic void setLeftTrackSpeed(double newValue)
newValue
- the new actual left track speed in meters per secondpublic void setRightTrackSpeed(double newValue)
newValue
- the new actual right track speed in meters per secondpublic void setDopplerSOGU(double newValue)
newValue
- the ugv doppler sonar forward speed over the groundpublic void setDopplerSOGV(double newValue)
newValue
- the ugv doppler sonar lateral speed over the groundpublic double[] getExtraDisState()
getExtraDisState
in class StateVector