![]() |
C++ Command Based Robot Template
1 Attachment(s)
Has anyone else noticed that the included template does not work correctly? After opening up the examples (GearBot, PacGoat) I noticed that they were different from the template!
Here are some of the discrepancies I noticed: - There is no CommandBase.cpp/.h in the examples - The headers in the template are different from examples - Examples work, template doesn't - No Robot.h in template Realizing this made me rather mad. I had to write out some of the files by hand to make sure they worked, and by doing so our robot finally started up, drove, etc. But there was still one problem... My under-programmers are not very experienced with classes and complicated programs like this, so they had no clue how to get it to work. So I have created a blank robot with example command, subsystem, and all the small things needed (declaring motors, joysticks, methods, etc.) and for the sake of frankly being bored I would like to share the blank robot with you, especially if teams are having trouble trying to figure out why their robot won't work. Please feel free to point out any errors, update with better examples, or tell me just how wrong it is, so message me or reply with any of those things. -Lord Supreme Programmer for Team 1410 Isaac P.S. It works, I swear. |
Re: C++ Command Based Robot Template
Never bothered with the command bassed template, that's what RobotBuilder is for. Have you ever tried using it? It's pretty great, you can get the annoying stuff done quickly so you have more time to work on perfecting commands or w/e :) Sorry for not really answering question
|
Re: C++ Command Based Robot Template
Quote:
|
Re: C++ Command Based Robot Template
Quote:
|
Re: C++ Command Based Robot Template
Quote:
If you want to go it alone, fine. But consider the effect on the rest of your team if you blaze your own path and can't get help when you need it. |
Re: C++ Command Based Robot Template
Quote:
And if you're going to say that by not using RobotBuilder I am throwing my team under a bus and making it impossible for me to get help, how come every question I have asked has been answered? And how, if not using RobotBuilder will mean our code won't work, is our robot currently error free and running smoothly? |
Re: C++ Command Based Robot Template
You should not be flippantly giving Alan a hard time. Alan is trying to help you. And though your code is now "error free and running smoothly" the OP sounds desperate (and kinda silly).
|
Re: C++ Command Based Robot Template
Quote:
|
Re: C++ Command Based Robot Template
I believe you may be using an old template and that's what the problem is. Like you said the examples don't have CommandBase and thats because it was removed this year. And the Robot.h I believe was called RobotTemplate last year. If you are using Eclipse with this years plugins I don't know how you would be having these problems but that seems like what it is.
|
Re: C++ Command Based Robot Template
Quote:
|
Re: C++ Command Based Robot Template
Quote:
|
Re: C++ Command Based Robot Template
I mean, we use robot builder and I don't see anything wrong with it, it generates all the tedious stuff which would be hard to keep track of by hand. The wiring table is indispensible and how easy it is to use means that it allows you more time to make the code more complex. Teaching freshmen with it is insanely easy(especially when you have the pretty pictures enabled) because it allows them to visualize what's going on more easily, which IMHO is the most important part of FRC programming, or programming in general for that matter.
|
Re: C++ Command Based Robot Template
FWIW, for a test I ran earlier this week, I created a new command based C++ project from the template and didn't run into any of the issues you describe.
|
Re: C++ Command Based Robot Template
Quote:
|
Re: C++ Command Based Robot Template
Quote:
|
| All times are GMT -5. The time now is 09:17 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi