|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||
|
|||
|
Team 254 Presents: 2015 FRC Code
Hi everyone,
Team 254 is happy to share the code base for our 2015 robot, Deadlift. This year’s software includes new features such as a test harness and simulator code to run the program on a computer, web-based graphing tools, constants editor, and autonomous selection, blocking autonomous routines, and a controller that calculates and follows a trapezoidal motion profile, on the fly. Please take a look at the following repositories: Robot Code: https://github.com/Team254/FRC-2015 Simulated Robot Hardware: https://github.com/Team254/Sim-FRC-2015 Simulator: https://github.com/tombot/FakeWPILib Last edited by Ryan Johnson : 27-07-2015 at 22:50. |
|
#2
|
|||
|
|||
|
Re: Team 254 - 2015 FRC Code
I am really excited to look through this! Thanks for posting this.
|
|
#3
|
|||
|
|||
|
Re: Team 254 - 2015 FRC Code
Quote:
Github isn't designed for our practices of code writing. (Though a version control system that works for arbitrary groups of people committing as one would be cool). And for bugs, we usually just chased them down when we found them, getting help for them as needed. Last edited by artK : 27-07-2015 at 14:16. Reason: Removed emoji |
|
#4
|
|||||
|
|||||
|
Re: Team 254 - 2015 FRC Code
Quote:
Implied slander from an anonymous account. |
|
#5
|
|||||
|
|||||
|
Re: Team 254 - 2015 FRC Code
Truth.
|
|
#6
|
||||
|
||||
|
Re: Team 254 - 2015 FRC Code
So would it be possible to use the simulator and run our own code on it at any point, or are there any steps to make it work?
|
|
#7
|
|||
|
|||
|
Re: Team 254 - 2015 FRC Code
Quote:
Code:
#define true ((rand()&15)!=15) If a team of 254s caliber is seemingly forgoing this utility I would personally like to know why. (Different internal system for tracking bugs? Mentors reviewing code before it goes on github? All just speculation of course.) |
|
#8
|
||||
|
||||
|
Re: Team 254 - 2015 FRC Code
Quote:
On a side note... what does that #define line of code do? Is that some fuzzy logic? |
|
#9
|
|||
|
|||
|
Re: Team 254 - 2015 FRC Code
It was a prank a friend of mine played on me a few years ago (not while programming robots). Basically, true is true... Most of the time... It's not as easy to detect as #define true false. We had a whole slew of these we did back and forth.
|
|
#10
|
||||
|
||||
|
Re: Team 254 - 2015 FRC Code
I followed the directions here to run the robot code in the simulator. I got the following error.
Code:
run_sim.rb:6:in `exists?': no implicit conversion of nil into String (TypeError) from run_sim.rb:6:in `<main>' |
|
#11
|
||||
|
||||
|
Re: Team 254 - 2015 FRC Code
Some questions (not a very advanced programmer, yet)
1. How do you run autonomous mode despite the looper? If you tried your approach on a normal iterative robot template, the loop would run on the wait commands, preventing it from advancing. 2. You need to generate splines to create paths for motion profiling, right? 3. What is the peacock motor? Some more questions, but I'll wait for answers to to these first. |
|
#12
|
|||
|
|||
|
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. |
|
#13
|
|||
|
|||
|
Re: Team 254 - 2015 FRC Code
Quote:
|
|
#14
|
|||
|
|||
|
Re: Team 254 - 2015 FRC Code
We had some sketches of this day 1 of build.
|
|
#15
|
||||
|
||||
|
Re: Team 254 - 2015 FRC Code
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|