public abstract class ControlParameters extends Object
Modifier and Type | Class and Description |
---|---|
class |
ControlParameters.CommandParser |
Modifier and Type | Field and Description |
---|---|
boolean |
commandCompleteMsgSent |
boolean |
continueRun |
protected boolean |
readyNextCommand |
protected double |
standoffDistance
Distance that is considered an acceptable distance from a waypoint
|
Execution |
vehicle |
protected WorkbenchCommunicator |
workbenchCommunicator |
protected double |
xCommand
commanded x position
|
protected double |
xStart
starting point x position of the current track
|
protected double |
yCommand
commanded y position
|
protected double |
yStart
starting point y position of the current track
|
Constructor and Description |
---|
ControlParameters() |
Modifier and Type | Method and Description |
---|---|
double |
getStandoff() |
abstract double |
getTimeStep()
Compute simulation timestep interval for this vehicle
|
double |
getXCommand() |
double |
getXStart() |
double |
getYCommand() |
double |
getYStart() |
boolean |
isTimedCommand() |
abstract boolean |
parseCommand(Object commandElement)
parses an XML (AVCL) script command and sets the control parameter values as required
|
abstract boolean |
parseCommand(String commandString)
parses a space delimited text script command and sets the control parameter values as required
|
protected boolean |
parseTelemetryPostCommon(double timestamp,
StateVector state,
ControlParameters.CommandParser parser)
Common code for all types of telemetry parsers
|
boolean |
readyForNextCommand() |
abstract void |
setMission(Mission mission)
Just to allow instance to configure itself based on mission specifics (i.e., telemetry type)
|
void |
setReadyNextCommand()
sets the "ready for next command" flag to true
|
void |
setTimedCommand(double time)
sets the vehicle to be ready for a new command at a specified time
|
void |
setWorkbenchCommunicator(WorkbenchCommunicator workbenchCommunicator)
Replay missions execution objects delegate workbench updates to this class, or its subclass, because
the status communication is more involved than just "which AVCL command are we executing?".
|
void |
unsetReadyNextCommand()
sets the "ready for next command" flag to false
|
abstract void |
useMetricDistances(boolean setting)
Used to switch between metric and English units of measure
|
abstract void |
useRadianAngles(boolean setting)
Used to switch between radian and degree angular measurements
|
public Execution vehicle
protected double standoffDistance
protected double xCommand
protected double yCommand
protected double xStart
protected double yStart
public boolean continueRun
protected boolean readyNextCommand
public boolean commandCompleteMsgSent
protected WorkbenchCommunicator workbenchCommunicator
public abstract void useMetricDistances(boolean setting)
setting
- true if metric units of measure are to be usedpublic abstract void useRadianAngles(boolean setting)
setting
- true if metric units of measure are to be usedpublic abstract double getTimeStep()
public abstract boolean parseCommand(Object commandElement)
commandElement
- command to be parsedpublic abstract boolean parseCommand(String commandString)
commandString
- command to be parsedpublic abstract void setMission(Mission mission)
mission
- instance of execution.mission.Missionpublic void setReadyNextCommand()
public void unsetReadyNextCommand()
public void setTimedCommand(double time)
time
- specified timepublic boolean isTimedCommand()
public double getStandoff()
public double getXCommand()
public double getYCommand()
public double getXStart()
public double getYStart()
public boolean readyForNextCommand()
public void setWorkbenchCommunicator(WorkbenchCommunicator workbenchCommunicator)
workbenchCommunicator
- object to send messages to workbenchprotected boolean parseTelemetryPostCommon(double timestamp, StateVector state, ControlParameters.CommandParser parser)
timestamp
- vehicle timestampstate
- Vehicle stateparser
- AVCL telemetry parser