-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSDK-8714: Encoder wrappers #64
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be some whitespacing and spelling issues. I'm not sure what editor you're using, but you can probably look up some autoformatting tools to help you with the whitespace!
|
||
/** | ||
* Report the position of the encoder. | ||
* The value returned is the current position in terms of it's ``position_type``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* The value returned is the current position in terms of it's ``position_type``. | |
* The value returned is the current position in terms of its ``position_type``. |
|
||
/** | ||
* Report the position of the encoder. | ||
* The value returned is the current position in terms of it's ``position_type``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* The value returned is the current position in terms of it's ``position_type``. | |
* The value returned is the current position in terms of its ``position_type``. |
|
||
/** | ||
* Report the position of the encoder. | ||
* The value returned is the current position in terms of it's ``position_type``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* The value returned is the current position in terms of it's ``position_type``. | |
* The value returned is the current position in terms of its ``position_type``. |
|
||
/** | ||
* Report the position of the encoder. | ||
* The value returned is the current position in terms of it's ``position_type``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* The value returned is the current position in terms of it's ``position_type``. | |
* The value returned is the current position in terms of its ``position_type``. |
fun getPosition( extra: Struct): Pair<Float, PositionType>{ | ||
return getPosition( null, extra) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fun getPosition( extra: Struct): Pair<Float, PositionType>{ | |
return getPosition( null, extra) | |
fun getPosition(extra: Struct): Pair<Float, PositionType>{ | |
return getPosition(null, extra) |
* @return a map of position types to supported status. | ||
*/ | ||
fun getProperties(): Properties { | ||
return getProperties( Struct.getDefaultInstance()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return getProperties( Struct.getDefaultInstance()) | |
return getProperties(Struct.getDefaultInstance()) |
verify(encoder).getProperties(Struct.getDefaultInstance()) | ||
assertTrue(properties.ticksCountSupported) | ||
assertTrue(properties.angleDegreesSupported) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra whitespace
* ticks since last zeroing for a relative encoder or degrees for an absolute encoder, and the second [1] the type of | ||
* position the encoder returns (ticks or degrees). | ||
*/ | ||
fun getPosition(): Pair<Float, PositionType> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does getPosition
have four definitions? It seems other functions have two.
Add encoder wrappers in java sdk + associated tests