Conversation
|
Hi @Jamdan2, thanks for opening this pull request! Looks like this is an addition or fix for the robot. To make sure this change goes added in smoothly, make sure the following chores are complete (please check-off items as they are completed):
Maintainers – please review this PR. A review from the @SouthEugeneRoboticsTeam/reviewers team is required before the PR can be merged. Finally, use Thanks! |
|
|
||
| val m = Unit(Unit.Type.Linear, 1.0) | ||
| val inch = Unit(Unit.Type.Linear, 39.3701) | ||
| val et = Unit(Unit.Type.Linear, 26876.6549) |
| import java.lang.Math.PI | ||
| import java.util.stream.Collector | ||
|
|
||
| data class Unit<T : Unit.Type>(val type: T, val factor: Double) { |
There was a problem hiding this comment.
lol, gotta come up with a different name for this since it shadow's Kotlin's built-in Unit, (causing this build to fail, eg:
There was a problem hiding this comment.
Haha I realized that too! Why do they even call it Unit? Can't they just call it Void? Or None? Or something that makes sense? 😃
Units