fromPathweaverJson Method Usage

I’ve been at it for over an hour now, trying to import a PathWeaver path to my robot program. I don’t know what I’m doing wrong but when I try to use the static method I get the error The method fromPathweaverJson(Path) is undefined for the type RobotContainer. Am I using this method incorrectly?

It’s a static function in the TrajectoryUtil class, so you need to call TrajectoryUtil.fromPathweaverJson after importing edu.wpi.first.wpilibj.trajectory.TrajectoryUtil.

Thank you, build season has taken it’s toll. :laughing:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.