Skip to content

Commit

Permalink
degrees acceleration feedforward
Browse files Browse the repository at this point in the history
  • Loading branch information
sswadkar committed Feb 2, 2023
1 parent 77c370c commit 0ee5466
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ publishing {
release(MavenPublication) {
groupId = 'org.team4099'
artifactId = 'falconutils'
version = '1.1.9'
version = '1.1.10'

from(components["kotlin"])
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,23 @@ inline val <K : UnitKey> Value<K>.perMeterPerSecondPerSecond
inline val <K : UnitKey> Value<K>.perRadianPerSecondPerSecond
get() = Value<Fraction<K, Acceleration<Radian>>>(value)

inline val <K : UnitKey> Value<K>.perDegreePerSecondPerSecond
get() = Value<Fraction<K, Acceleration<Radian>>>(value / RADIANS_PER_DEGREES)

inline val AccelerationFeedforward<Radian, Volt>.inVoltsPerRadianPerSecondPerSecond
get() = value

inline val AccelerationFeedforward<Radian, Volt>.inVoltsPerDegreePerSecondPerSecond
get() = inVoltsPerRadianPerSecondPerSecond / RADIANS_PER_DEGREES

inline val AccelerationFeedforward<Meter, Volt>.inVoltsPerMeterPerSecondPerSecond
get() = value

inline val AccelerationFeedforward<Radian, Ampere>.inAmpsPerRadianPerSecondPerSecond
get() = value

inline val AccelerationFeedforward<Radian, Ampere>.inAmpsPerDegreePerSecondPerSecond
get() = inAmpsPerRadianPerSecondPerSecond / RADIANS_PER_DEGREES

inline val AccelerationFeedforward<Meter, Ampere>.inAmpsPerMeterPerSecondPerSecond
get() = value

0 comments on commit 0ee5466

Please sign in to comment.