Shouldn’t motor controllers (Victor SPX) have some lines of code to control them? Where does that go? Current robot code (which is really just a “template” from our 2019 code).
https://github.com/aaronli027/2020-Draft-Code
Our 2019 code:
github.com/aaronli027/Team1665-2019-Robot-Code
If they look like a mess on github, sorry about that. First timer.
1 Like
On the driver station, it says ‘watchdog not fed’ does that mean the code hasnt deployed? If yes, it confirms that we havent.
Says something about gradlew.
It looks like you might not have installed everything you need.
Does the root folder of your project have gradlew.bat and build.gradle files? Also you do need code for the motor controllers.
The code that is on GitHub doesn’t match that file tree
the github stuff is probably not the best bet right now since i just randomly uploaded the files (not in order).
Where does this code go? i don’t see it in the 2019 code… Unless it’s Phoenix.json?
In you 2019 code, you put it in drivebase.java but you used the generic pwm class. you could do the same thing this year unless you are using can motor controllers.
Yes, we are using Victor SPX with Can bus
According to that file tree, you don’t have your source code! It shows an empty src folder, which should have .Java source file counterparts for each .class file in build.
Sorry my bad your original image didn’t show the src>main>java folder
Instead of ‘PWM’ use ‘WPI_TalonSRX motor = new WPI_TalonSRX(port#)’ and use ‘motor.set(percent)’ to set where percent is a double from -1 to 1.
1 Like
And that would go in your drivetrain subsystem
1 Like
Where are you seeing PWM in the 2020 code?
It’s in the 2019 code In drivebase, but put the Victor spx code in the same place in the 2020 code