Package com.marswars.sensors.tof
Class Tof
java.lang.Object
com.marswars.sensors.tof.Tof
- All Implemented Interfaces:
SubsystemIoBase
- Direct Known Subclasses:
GrappleTof,PwfTof
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet the logging key for this mechanismdoublegetRange()Get the measured range in metersvoidlogData()Log data to NetworkTables or other logging systemsvoidreadInputs(double timestamp) Read inputs from hardware or simulationprotected abstract voidreadTof()voidsetRange(double range) Set the measured range in meters (for simulation only)voidwriteOutputs(double timestamp) Write outputs to hardware or simulation
-
Field Details
-
tof_name_
-
IS_SIM
protected final boolean IS_SIM -
inputs_
protected final com.marswars.sensors.tof.TofInputsAutoLogged inputs_
-
-
Method Details
-
getLoggingKey
Get the logging key for this mechanism- Returns:
- the logging key
-
readInputs
public void readInputs(double timestamp) Description copied from interface:SubsystemIoBaseRead inputs from hardware or simulation- Specified by:
readInputsin interfaceSubsystemIoBase- Parameters:
timestamp- the current timestamp
-
readTof
protected abstract void readTof() -
writeOutputs
public void writeOutputs(double timestamp) Description copied from interface:SubsystemIoBaseWrite outputs to hardware or simulation- Specified by:
writeOutputsin interfaceSubsystemIoBase- Parameters:
timestamp- the current timestamp
-
logData
public void logData()Description copied from interface:SubsystemIoBaseLog data to NetworkTables or other logging systems- Specified by:
logDatain interfaceSubsystemIoBase
-
getRange
public double getRange()Get the measured range in meters- Returns:
- range in meters
-
setRange
public void setRange(double range) Set the measured range in meters (for simulation only)- Parameters:
range- range in meters
-