Package edu.wpi.first.wpilibj
Class DMASample
java.lang.Object
edu.wpi.first.wpilibj.DMASample
public class DMASample extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DMASample.DMAReadStatus
-
Constructor Summary
Constructors Constructor Description DMASample()
-
Method Summary
Modifier and Type Method Description int
getAnalogInputRaw(AnalogInput analogInput)
double
getAnalogInputVoltage(AnalogInput analogInput)
int
getAveragedAnalogInputRaw(AnalogInput analogInput)
double
getAveragedAnalogInputVoltage(AnalogInput analogInput)
int
getCaptureSize()
int
getCounter(Counter counter)
int
getCounterPeriod(Counter counter)
boolean
getDigitalSource(DigitalSource digitalSource)
double
getDutyCycleOutput(DutyCycle dutyCycle)
int
getDutyCycleOutputRaw(DutyCycle dutyCycle)
double
getEncoderDistance(Encoder encoder)
Gets the scaled encoder distance for this sample.int
getEncoderPeriodRaw(Encoder encoder)
int
getEncoderRaw(Encoder encoder)
int
getRemaining()
long
getTime()
double
getTimeStamp()
int
getTriggerChannels()
DMASample.DMAReadStatus
update(DMA dma, double timeoutSeconds)
-
Constructor Details
-
Method Details
-
update
-
getCaptureSize
-
getTriggerChannels
-
getRemaining
-
getTime
-
getTimeStamp
-
getEncoderRaw
-
getEncoderDistance
Gets the scaled encoder distance for this sample.- Parameters:
encoder
- the encoder to use to read- Returns:
- the distance
-
getEncoderPeriodRaw
-
getCounter
-
getCounterPeriod
-
getDigitalSource
-
getAnalogInputRaw
-
getAnalogInputVoltage
-
getAveragedAnalogInputRaw
-
getAveragedAnalogInputVoltage
-
getDutyCycleOutputRaw
-
getDutyCycleOutput
-