CrossTheRoadElec / Phoenix-api

CTRE Phoenix language API (targets FIRST Robotics Competition, Linux, RaspPi, Windows)
Other
39 stars 28 forks source link

TrajectoryDuration.valueOf(int value) is not static #21

Closed rzblue closed 6 years ago

rzblue commented 6 years ago

The valueOf() method that takes an integer representing a value in ms for TrajectoryPoint.TrajectoryDuration is not static, and is instead a member method of the enum.

ozrien commented 6 years ago

Agreed. See example for the workaround.

ozrien commented 6 years ago

Issue has been resolved. https://github.com/CrossTheRoadElec/Phoenix-frc-lib/blob/master/java/src/com/ctre/phoenix/motion/TrajectoryPoint.java#L30