|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
||||
|
||||
|
Re: Team 254 Presents: 2015 FRC Code
Whats the license like for the code, specifically the stuff in the Simulated Robot Hardware repository. I would like to put some of that in the simulator side of the C# project if possible.
|
|
#17
|
|||
|
|||
|
Re: Team 254 Presents: 2015 FRC Code
I added some license files to all the repos (MIT for all our stuff, BSD as some of the FakeWPILib is derivative of WPILib). Feel free to add whatever you see fit to your projects!
|
|
#18
|
|||
|
|||
|
Re: Team 254 - 2015 FRC Code
Quote:
2. We didn't use any spline paths this year. All of the control loops were 1d (elevator carriages, drive forward, turn in place). All of the moving subsystems shared a generic base controller which could be tuned for the properties of that system. The motion profiling was done on the fly (this is a much easier calc than generating spline-y paths). 3. The original concept for our can grabber was a system that had 4 individual telescoping arms (feathers) that would go out and grab each can in auto, all starting from the robot centered on the field. This made the robot look like a peacock, and the name for that subsystem stuck through iterations. A motor peacock is just the motorized can grabber assembly. |
|
#19
|
||||
|
||||
|
Re: Team 254 Presents: 2015 FRC Code
Thanks for the replies.
Few more questions. 1. How much smaller/larger than your shafts/stock is the tubing you get from mcmaster to ensure a super snug fit? (NOT a code question, I know )2. Any reason you chose not to use CAN control for your motors? 3. Did you ever figure out the timing issues java had? |
|
#20
|
|||||
|
|||||
|
Re: Team 254 Presents: 2015 FRC Code
Quote:
#2, the CAN-enabled Talon SRX was new to FRC this season, so we decided to stick with tried-and-true PWM in case there were teething problems. As it turned out, the CAN Talon works great, and I'd say there's a good chance we use them next year. #3, yeah. The WPIlib JAR we used was tweaked to enable interrupts and the hardware timer to work correctly in Java (basically we just finished some incomplete JNI work). The source of the modified JAR is in the lib directory. Garbage collection and the JVM still mean that we aren't quite as reliable as a RT C++ thread would be, but it is pretty stable with our changes. Last edited by Jared Russell : 28-07-2015 at 21:53. |
|
#21
|
|||
|
|||
|
Re: Team 254 - 2015 FRC Code
Quote:
|
|
#22
|
|||
|
|||
|
Re: Team 254 - 2015 FRC Code
We had some sketches of this day 1 of build.
|
|
#23
|
||||
|
||||
|
Re: Team 254 Presents: 2015 FRC Code
Last year, you guys squared turn inputs when you were quickturning (in teleopPeriodic). I don't see it this year - what happened to that?
|
|
#24
|
|||
|
|||
|
Re: Team 254 Presents: 2015 FRC Code
This robot drove very differently than past robots. It was quite tall and had omni wheels on the corners. We had to mess with the drive code a bit to get it back to a place where the driver felt comfortable. I think his complaint was quick turn was a bit hard to control and would go from zero to full spin too fast.
|
|
#25
|
||||
|
||||
|
Re: Team 254 Presents: 2015 FRC Code
I'm a little confused with the simulator. FakeWPILib replaces classes that won't run on a computer, but it doesn't have a replacement class for NotifierJNI, which won't run on a computer. NotifierLooper uses NotifierJNI, which creates an unsatisfiedlinkerror exception.
|
|
#26
|
||||
|
||||
|
Re: Team 254 Presents: 2015 FRC Code
Another question: what, conceptually, is a Tappable?
|
|
#27
|
||||
|
||||
|
Re: Team 254 Presents: 2015 FRC Code
I think there's a bug in the solenoid.java file of FakeWPILib
Code:
public Solenoid(final int moduleNumber, final int channel) {
m_channel = channel;
initSolenoid((moduleNumber * 7) + channel);
}
Something is a little weird - the robot code can't work in the simulator with this version of FakeWPILib, which is also missing a NotifierJNI class. Perhaps there was another revision of FakeWPILib? |
|
#28
|
||||
|
||||
|
Re: Team 254 Presents: 2015 FRC Code
Not on 254, and it's been a few years, but when we build in intake with BBD in the 2013 offseason, we bought 1/2" ID tubing to go over 1/2" VP hex. There was plenty of interference, and it wasn't impossible to get on (although it was definitely hard). I've heard 254 transitioned from BBD to surgical recently though, so take my experience with a grain of salt.
|
|
#29
|
|||||
|
|||||
|
Re: Team 254 Presents: 2015 FRC Code
Quote:
|
|
#30
|
|||
|
|||
|
Re: Team 254 Presents: 2015 FRC Code
Quote:
The fake wpi lib is by no means complete. We just implemented hardware abstractions as we went along and needed them. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|