public class UgvControlParameters extends ControlParameters
ControlParameters.CommandParser
Modifier and Type | Field and Description |
---|---|
static int |
LOITERCONTROL |
protected double |
MAX_TRACK_SPEED
Maximum power setting
|
protected double |
MAXTURNRATE
Maximum orderable turn rate (degrees per second)
|
protected double |
MINIMUMTRANSITSPEED
Minimum speed to be used when transiting between waypoints (MPS)
|
protected double |
NOMINALTRANSITSPEED
Typical transit speed between waypoints (MPS)
|
static int |
OPENLOOPCONTROL |
boolean |
radianAngles
Control constants and mathematical model use degrees, so if the mission uses radians, angles need to be converted
|
static double |
timeStep
closed loop timing increment (seconds)
|
static int |
WAYPOINTCONTROL |
commandCompleteMsgSent, continueRun, readyNextCommand, standoffDistance, vehicle, workbenchCommunicator, xCommand, xStart, yCommand, yStart
Constructor and Description |
---|
UgvControlParameters(UgvExecution execution)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getMaxTrackSpeed()
returns maximum commanded track speed for ugv
|
double |
getMaxTurnRate()
returns maximum turn rate (degrees per second) for ugv
|
double |
getTimeStep()
returns the ugv time step
|
void |
loadControlLimits(ExecutionDynamicsConfiguration config)
Sets the control limit values based on the configuration file
|
boolean |
parseCommand(Object commandElement)
parses an XML (AVCL) script command and sets the control parameter values as required
|
boolean |
parseCommand(String commandString)
parses a space delimited text script command and sets the control parameter values as required
NOTE: Not Implemented!!!
|
void |
setMission(Mission mission)
Just to allow instance to configure itself based on mission specifics (i.e., telemetry type)
|
void |
setStandoffDistance(double newValue)
sets the ugv standoff distance
|
void |
useMetricDistances(boolean newSetting)
sets the distance units of measure to either meters or feet (default).
|
void |
useRadianAngles(boolean newSetting)
sets the angular units of measure to either radians or degrees (default)
Only valid for AVCL missions--text will ALWAYS use degrees
|
getStandoff, getXCommand, getXStart, getYCommand, getYStart, isTimedCommand, parseTelemetryPostCommon, readyForNextCommand, setReadyNextCommand, setTimedCommand, setWorkbenchCommunicator, unsetReadyNextCommand
public static double timeStep
public static final int WAYPOINTCONTROL
public static final int OPENLOOPCONTROL
public static final int LOITERCONTROL
protected double MAX_TRACK_SPEED
protected double MAXTURNRATE
protected double MINIMUMTRANSITSPEED
protected double NOMINALTRANSITSPEED
public boolean radianAngles
public UgvControlParameters(UgvExecution execution)
execution
- reference to uav to which this object appliespublic void setMission(Mission mission)
ControlParameters
setMission
in class ControlParameters
mission
- instance of execution.mission.Missionpublic void loadControlLimits(ExecutionDynamicsConfiguration config)
config
- JAXB object containing all configuration datapublic double getTimeStep()
getTimeStep
in class ControlParameters
public double getMaxTrackSpeed()
public double getMaxTurnRate()
MAXTURNRATE
public void useMetricDistances(boolean newSetting)
useMetricDistances
in class ControlParameters
newSetting
- true if mission command distance units will be meters (false for feet)public void useRadianAngles(boolean newSetting)
useRadianAngles
in class ControlParameters
newSetting
- Setting true if mission command angular units will be radians (false for degrees)public void setStandoffDistance(double newValue)
newValue
- new valuepublic boolean parseCommand(Object commandElement)
ControlParameters
parseCommand
in class ControlParameters
commandElement
- AVCL commandpublic boolean parseCommand(String commandString)
parseCommand
in class ControlParameters
commandString
- command to be parsed