|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| 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:
Implied slander from an anonymous account. |
|
#4
|
|||||
|
|||||
|
Re: Team 254 - 2015 FRC Code
Truth.
|
|
#5
|
||||
|
||||
|
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?
|
|
#6
|
|||
|
|||
|
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.) |
|
#7
|
||||
|
||||
|
Re: Team 254 - 2015 FRC Code
Quote:
On a side note... what does that #define line of code do? Is that some fuzzy logic? |
|
#8
|
|||
|
|||
|
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.
|
|
#9
|
|||
|
|||
|
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 |
|
#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:
|
|
#13
|
|||
|
|||
|
Re: Team 254 - 2015 FRC Code
Will we be seeing a build blog anytime soon? Thanks!
|
|
#14
|
||||
|
||||
|
Re: Team 254 - 2015 FRC Code
They said it's unlikely in the post of their technical binder.
|
|
#15
|
|||
|
|||
|
Re: Team 254 - 2015 FRC Code
Quote:
. Was looking forward to it. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|