![]() |
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 |
Re: Team 254 - 2015 FRC Code
I am really excited to look through this! Thanks for posting this.
|
Re: Team 254 - 2015 FRC Code
Quote:
Implied slander from an anonymous account. |
Re: Team 254 - 2015 FRC Code
Quote:
|
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?
|
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.) |
Re: Team 254 - 2015 FRC Code
Quote:
On a side note... what does that #define line of code do? Is that some fuzzy logic? |
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.
|
Re: Team 254 - 2015 FRC Code
Quote:
Quote:
|
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) |
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. |
Re: Team 254 - 2015 FRC Code
Quote:
|
Re: Team 254 - 2015 FRC Code
Will we be seeing a build blog anytime soon? Thanks!
|
Re: Team 254 - 2015 FRC Code
Quote:
|
Re: Team 254 - 2015 FRC Code
Quote:
|
| All times are GMT -5. The time now is 04:26. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi