public abstract class FollowRefController extends java.lang.Object implements IController
| Modifier and Type | Field and Description |
|---|---|
protected VehicleType |
controlledVehicle |
protected LocationType |
destination |
| Constructor and Description |
|---|
FollowRefController() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getControllerName() |
abstract LocationType |
getDestination(LocationType curLoc,
double curDepth,
double curAlt) |
pt.lsts.imc.Reference |
guide(VehicleType vehicle,
pt.lsts.imc.EstimatedState estate,
pt.lsts.imc.FollowRefState frefState)
This method is used to implement the control law
|
void |
startControlling(VehicleType vehicle,
pt.lsts.imc.EstimatedState state)
Method called when the controller is initially activated for a given vehicle
|
void |
stopControlling(VehicleType vehicle)
Method called when the controller looses control over the vehicle.
|
boolean |
supportsVehicle(VehicleType vehicle,
pt.lsts.imc.EstimatedState state)
This method is used to check if a controller supports a given vehicle
|
void |
vehicleTimedOut(VehicleType vehicle)
Method called when the control loop is terminated due to a connection time out.
|
protected VehicleType controlledVehicle
protected LocationType destination
public abstract LocationType getDestination(LocationType curLoc, double curDepth, double curAlt)
public pt.lsts.imc.Reference guide(VehicleType vehicle, pt.lsts.imc.EstimatedState estate, pt.lsts.imc.FollowRefState frefState)
IControllerguide in interface IControllervehicle - The vehicle being controlled (plant)estate - The last known vehicle statefrefState - The last known maneuver execution stateReference message with desired control referencepublic java.lang.String getControllerName()
getControllerName in interface IControllerpublic boolean supportsVehicle(VehicleType vehicle, pt.lsts.imc.EstimatedState state)
IControllersupportsVehicle in interface IControllervehicle - A vehicle that can be controlledstate - The current state of the vehicletrue if this vehicle can be controlled or false otherwisepublic void startControlling(VehicleType vehicle, pt.lsts.imc.EstimatedState state)
IControllerstartControlling in interface IControllervehicle - The vehicle that will be associated with this controllerstate - The last known state of the vehicle that will start being controlledpublic void vehicleTimedOut(VehicleType vehicle)
IControllerIController.stopControlling(VehicleType) will be called nextvehicleTimedOut in interface IControllervehicle - The vehicle whose connection droppedpublic void stopControlling(VehicleType vehicle)
IControllerstopControlling in interface IControllervehicle - The vehicle that will stop being controlledCopyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.