diff --git a/build.gradle b/build.gradle index f822886..693c38c 100644 --- a/build.gradle +++ b/build.gradle @@ -39,7 +39,7 @@ publishing { release(MavenPublication) { groupId = 'org.team4099' artifactId = 'falconutils' - version = '1.1.9' + version = '1.1.10' from(components["kotlin"]) } diff --git a/src/main/kotlin/org/team4099/lib/units/derived/Characterization.kt b/src/main/kotlin/org/team4099/lib/units/derived/Characterization.kt index 7a162ab..86e2d53 100644 --- a/src/main/kotlin/org/team4099/lib/units/derived/Characterization.kt +++ b/src/main/kotlin/org/team4099/lib/units/derived/Characterization.kt @@ -24,14 +24,23 @@ inline val Value.perMeterPerSecondPerSecond inline val Value.perRadianPerSecondPerSecond get() = Value>>(value) +inline val Value.perDegreePerSecondPerSecond + get() = Value>>(value / RADIANS_PER_DEGREES) + inline val AccelerationFeedforward.inVoltsPerRadianPerSecondPerSecond get() = value +inline val AccelerationFeedforward.inVoltsPerDegreePerSecondPerSecond + get() = inVoltsPerRadianPerSecondPerSecond / RADIANS_PER_DEGREES + inline val AccelerationFeedforward.inVoltsPerMeterPerSecondPerSecond get() = value inline val AccelerationFeedforward.inAmpsPerRadianPerSecondPerSecond get() = value +inline val AccelerationFeedforward.inAmpsPerDegreePerSecondPerSecond + get() = inAmpsPerRadianPerSecondPerSecond / RADIANS_PER_DEGREES + inline val AccelerationFeedforward.inAmpsPerMeterPerSecondPerSecond get() = value