public class UavControlParameters extends ControlParameters
ControlParameters.CommandParser
Modifier and Type | Field and Description |
---|---|
protected static double |
CRUISESPEED
Minimum power required airspeed
|
protected double |
MAXAILERON
Maximum aileron setting
|
protected double |
MAXCLIMBRATE
Maximum orderable turn rate (degrees per second)
|
protected double |
MAXPOWER
Maximum power setting
|
protected double |
MAXRUDDER
Maximum rudder setting
|
protected double |
MAXSTABILATOR
Maximum stabilator setting
|
protected double |
MAXTURNRATE
Maximum orderable turn rate (degrees per second)
|
boolean |
radianAngles
Control constants and mathematical model use degrees, so if the mission uses radians, angles need to be converted
|
protected boolean |
reportStable
true if uavExecution needs to report completion of current command
|
static double |
timeStep
closed loop timing increment (seconds)
|
commandCompleteMsgSent, continueRun, readyNextCommand, standoffDistance, vehicle, workbenchCommunicator, xCommand, xStart, yCommand, yStart
Constructor and Description |
---|
UavControlParameters(UavExecution execution)
Constructor
|
Modifier and Type | Method and Description |
---|---|
double |
getMaxAileron() |
double |
getMaxPower() |
double |
getMaxRudder() |
double |
getMaxStabilator() |
double |
getStandoffDistance() |
double |
getTimeStep()
returns the uavExecution time step
|
void |
loadControlLimits(ExecutionDynamicsConfiguration config)
Sets the control limit values based on the configuration file
|
boolean |
parseCommand(Object commandElement)
parseCommand parses an XML (AVCL) script command and sets the control parameter values as required
|
boolean |
parseCommand(String commandString)
parseCommand parses a space-delimited text script command and sets the control parameter values as required
|
void |
setMaxAileron(double newValue)
sets the uavExecution maximum aileron setting
|
void |
setMaxPower(double newValue)
sets the uavExecution maximum power setting
|
void |
setMaxRudder(double newValue)
sets the uavExecution maximum rudder setting
|
void |
setMaxStabilator(double newValue)
sets the uavExecution maximum stabilator setting
|
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 uavExecution standoff distance
|
void |
setTimeStep(double newValue)
sets the uavExecution time step
|
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
protected boolean reportStable
public static double timeStep
protected static final double CRUISESPEED
protected double MAXPOWER
protected double MAXRUDDER
protected double MAXSTABILATOR
protected double MAXAILERON
protected double MAXCLIMBRATE
protected double MAXTURNRATE
public boolean radianAngles
public UavControlParameters(UavExecution execution)
execution
- reference to uavExecution to which this object appliespublic void setMission(Mission mission)
ControlParameters
setMission
in class ControlParameters
mission
- instance of execution.mission.Missionpublic double getTimeStep()
getTimeStep
in class ControlParameters
public double getStandoffDistance()
public double getMaxPower()
public double getMaxRudder()
public double getMaxStabilator()
public double getMaxAileron()
public void setTimeStep(double newValue)
newValue
- new valuepublic void setStandoffDistance(double newValue)
newValue
- new valuepublic void setMaxPower(double newValue)
newValue
- new valuepublic void setMaxRudder(double newValue)
newValue
- new valuepublic void setMaxStabilator(double newValue)
newValue
- new valuepublic void setMaxAileron(double newValue)
newValue
- new valuepublic void loadControlLimits(ExecutionDynamicsConfiguration config)
config
- JAXB object containing all configuration datapublic 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 boolean parseCommand(Object commandElement)
parseCommand
in class ControlParameters
commandElement
- is current AVCL command to be parsedpublic boolean parseCommand(String commandString)
parseCommand
in class ControlParameters
commandString
- is current text command to be parsed