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 classDMASample.DMAReadStatus -
Constructor Summary
Constructors Constructor Description DMASample() -
Method Summary
Modifier and Type Method Description intgetAnalogInputRaw(AnalogInput analogInput)doublegetAnalogInputVoltage(AnalogInput analogInput)intgetAveragedAnalogInputRaw(AnalogInput analogInput)doublegetAveragedAnalogInputVoltage(AnalogInput analogInput)intgetCaptureSize()intgetCounter(Counter counter)intgetCounterPeriod(Counter counter)booleangetDigitalSource(DigitalSource digitalSource)doublegetDutyCycleOutput(DutyCycle dutyCycle)intgetDutyCycleOutputRaw(DutyCycle dutyCycle)doublegetEncoderDistance(Encoder encoder)Gets the scaled encoder distance for this sample.intgetEncoderPeriodRaw(Encoder encoder)intgetEncoderRaw(Encoder encoder)intgetRemaining()longgetTime()doublegetTimeStamp()intgetTriggerChannels()DMASample.DMAReadStatusupdate(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
-