public class UavControlParameters extends ControlParameters
ControlParameters.CommandParser| Modifier and Type | Field and Description | 
|---|---|
| protected static double | CRUISESPEEDMinimum power required airspeed | 
| protected double | MAXAILERONMaximum aileron setting | 
| protected double | MAXCLIMBRATEMaximum orderable turn rate (degrees per second) | 
| protected double | MAXPOWERMaximum power setting | 
| protected double | MAXRUDDERMaximum rudder setting | 
| protected double | MAXSTABILATORMaximum stabilator setting | 
| protected double | MAXTURNRATEMaximum orderable turn rate (degrees per second) | 
| boolean | radianAnglesControl constants and mathematical model use degrees, so if the mission uses radians, angles need to be converted | 
| protected boolean | reportStabletrue if uavExecution needs to report completion of current command | 
| static double | timeStepclosed 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, unsetReadyNextCommandprotected 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)
ControlParameterssetMission in class ControlParametersmission - instance of execution.mission.Missionpublic double getTimeStep()
getTimeStep in class ControlParameterspublic 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 ControlParametersnewSetting - true if mission command distance units will be meters (false for feet)public void useRadianAngles(boolean newSetting)
useRadianAngles in class ControlParametersnewSetting - Setting true if mission command angular units will be radians (false for degrees)public boolean parseCommand(Object commandElement)
parseCommand in class ControlParameterscommandElement - is current AVCL command to be parsedpublic boolean parseCommand(String commandString)
parseCommand in class ControlParameterscommandString - is current text command to be parsed