✨[FEATURE REQUEST] Get velocity for adi::Encoder
#622
Labels
enhancement
This builds on top of an existing feature
adi::Encoder
#622
Is your feature request related to a problem? Please describe.
Three wire Encoders seem to natively support reporting velocity data through the SDK, as is evident from
vex::encoder::velocity
. The relevant libv5rt function seems to bevexAbsEncVelocityGet
. It'd be nice if PROS supported this device functionality, since the data is available but never used or reported.What is the behavior that isn't addressed by the existing API?
There's currently no way to get the velocity of a three-wire encoder without manually differentiating the position value through a custom implementation.
OPTIONAL Describe any solutions you've considered
Create a
adi::Encoder::get_velocity()
method similar tov5::Motor::get_actual_velocity
orv5::Rotation::get_velocity
that returns the velocity value reported from the sensorAdditional context
None
The text was updated successfully, but these errors were encountered: