Before I begin I would like to ask if it is recommended to use the autogenerated trajectory code that Pathweaver makes or is it better to manually set it in the ramsete command. Which one is quicker, which one is easier, which one ultimately grants better control. Now onto the problems. Whenever I deploy my code it throws a nullpointerexception such as:
Unhandled exception: java.lang.NullPointerException: Parameter trajectory in method RamseteCommand was null when it should not have been! Check the stacktrace to find the responsible line of code - usually, it is the first line of user-written code indicated in the stacktrace. Make sure all objects passed to the method in question were properly initialized - note that this may not be obvious if it is being called under dynamically-changing conditions! Please do not seek additional technical assistance without doing this first!
Which probably means that it didn’t find the JSON file. It does trigger the “catch” in the code so I think we know that. Because this was the code from the documentation I assume this may be a fairly common issue. This is my code here:
In this code I have comments detailing the file path on my laptop and the one that I believe is on the roborio. From my understanding, the Pathweaver file should be on the roborio’s physical storage. I moved the JSON file I made in Pathweaver onto the roborio using FileZilla but is this the right approach? Is this the way I should get the files onto the roborio? As well I want to ask whether the project directories in Pathweaver are correct?:
Here I have the file paths on my roborio, the json is actually in two locations I tried, one in the “Pathweaver” folder and the other in the “paths” folder
And just for the icing on the cake if you want to see how I used the Pathweaver class:
Any help at all is greatly appreciated thank you!