CrossTheRoadElec / Phoenix-api

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

TrajectoryPoint's valueOf is static #38

Closed CoryNessCTR closed 6 years ago

CoryNessCTR commented 6 years ago

Description of change

Trajectory Point's valueOf method is changed to static

Why this should be added

Making this a static method makes it easier for users to create a TrajectoryPoint enum from an integer, and eliminates the workaround that is currently in place in the examples.

Test Procedure

Test compilation of Motion Profile Examples

Test Results

Motion Profile Examples will compile. Example will run as expected.

Related Pull Requests/Issues

https://github.com/CrossTheRoadElec/Phoenix-frc-lib/issues/21