Would anyone be willing to post an example project of how to set up a pros project? I’ve scoured the forums and github and I haven’t found anything useful in terms of setting up a simple project. This is mainly for reference, I just want to see how you would set up motors and methods in a header file so you can call and access those in any source files you create.
I’ve been struggling to get working code on my chassis because I have an entangled mess with all my files and it would be very helpful to base my project off of something simple.
P.S. I’ve had my project reviewed by various people and their explanations haven’t been helpful, I’m more of a visual learner.
This code I have to is all on this repository on GitHub. I’m still getting an error when I call the motor in the autonomous.cpp file even though I included it.
I think my computer may be glitching out or something because now it recognizes the motor exists. I’m not 100% sure it will work since I haven’t uploaded it to the brain. Hopefully it does. Regardless, it would be nice if someone could review it.
I’ve updated the repository, for some reason it didn’t update the files when I uploaded them. Anyways, will putting method headers in the config.hpp of methods created in source files (.cpp) allow me to access those methods by #include the header file in other source files? (wording of question is a bit confusing)
the autonomous has a motor moving for an indefinite amount of time. Again, the purpose of this project is sort of a proof of concept as I’m switching from VCS, I just need to understand how linking files works with this IDE and pros API.
When I downloaded the program on the v5 brain, nothing happens, as in, no motors move. And I get a JSON error but it doesn’t indicate what’s causing that.
We’ve gotten a couple reports from various folks using macOS. We haven’t been able to reproduce the issue and are looking for someone to help us do some troubleshooting on our Slack or on GitHub. If you could join and help us do some diagnosis so we can fix the issue, that would be appreciated.
I’m on my phone right now - I will share the Slack invitation/GH issues when I get home if someone doesn’t beat me to it.