|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
|||||
|
|||||
|
Re: Really underhanded
Correct, there could be other issues causing them to be off in speed, but this should get them close enough to be decently driveable.
|
|
#17
|
|||
|
|||
|
Re: Really underhanded
Quote:
Disadvantages
Advantages:
Truth in advertising disclosure: The electrical team delivered our practice chassis with the shiny new roboRIO to the programmers at 6pm a couple weeks ago. The previous session we had done the first RobotBuilder portion of the sequence but hit a wall because wpilib was not being introduced into the project and none of the functions from wpilib were resolving. We spent 1hr realizing that we had installed Eclipse/Java instead of Eclipse/C++ (didn't read the install directions carefully enough). It took us a full hour to write the 7 lines of code noted above and we kept having to revisit RobotBuilder because my style of teaching is 'OK-- what do we do next? What do we need now that we have this DriveTrain???' What can we currently do with it?? What methods are avaliable to us? They look and realize the class as written from RobotBuilder does nothing but set the default command and that is nothing but comments. So I taught them the concept of adding functionality to a class by providing useful methods and we wrote mecanumDrive and taught them the whole 'just type robotDrive41 and press period' to see what functionality exists on a RobotDrive object, etc. etc. Finally after 30-40 minutes and teaching what a double is and what parameters are, etc... we wound up with the mecanumDrive() function. Then I ask 'OK-- so now we have a subsystem called DriveTrain that has the functionality of something called mecanumDrive on it. How can we make use of this? How can we command it to do something?? Eventually we arrive at the discussion that we need commands to control subsystems, go back to robot builder and add in DriveWithJoystick, we talk about Scheduler and the role it plays and why we need requires'. Then we get to the question 'OK-- so what else do we need now that we have a command that can control our DriveTrain???' Eventually after much prodding I get them to realize that we need Joystick input and we add the Joytick. By the time we review how a command works and fill out the execute() function there is only one hour left and we spent that flashing the roboRio, etc. We spent the first hour of the next session setting up routers figuring out how to deploy the code. It took us a full 4 hours of FRC practice following the general cookbook I outlined in my previous post until we even downloaded our first set of code. Thankfully things were working pretty good out of the gate-- one wheel was not spinning at all-- we replaced PWM and it started working. We realized that when we tried to drive forward the right wheels went backwards and I had them invert the right side. So even though you *can* get up and running in 10-15 minutes with the above cookbook-- to properly learn what is going on along the way and be successful when you don't know all the answers going in, you may find yourself needing 3-4 hours. |
|
#18
|
||||
|
||||
|
Re: Really underhanded
Quote:
|
|
#19
|
|||||
|
|||||
|
Re: Really underhanded
Oops, missed that step. Correct.
|
|
#20
|
||||
|
||||
|
Re: Really underhanded
I have the wheels on center now and with a robot builder built code have the drive train working. Although that is wonderful, I am interested in using the generators within eclipse itself.
Would that change the robot's form? And by that I mean from command to simple or ect? |
|
#21
|
|||||
|
|||||
|
Re: Really underhanded
Quote:
|
|
#22
|
||||
|
||||
|
Re: Really underhanded
No, I am just curious on which is better to use for the team in the long run. As programming lead it is my best interest to teach the underclassmen for the future. I will take the time during the season and in the off season to teach and share my learning with the other programmers. Fortunately I am a junior so I will be here for at least another year.
|
|
#23
|
|||||
|
|||||
|
Re: Really underhanded
Quote:
|
|
#24
|
||||
|
||||
|
Re: Really underhanded
I may need help with getting started, or explaining for that matter. Do you usually use robot builder?
|
|
#25
|
|||||
|
|||||
|
Re: Really underhanded
Quote:
|
|
#26
|
||||
|
||||
|
Re: Really underhanded
Quote:
._. |
|
#27
|
|||||
|
|||||
|
Re: Really underhanded
We use google code and SVN on our team. I'm not familiar with Github at all unfortunately. There are several teams on CD that do use Github though.
|
|
#28
|
||||
|
||||
|
Re: Really underhanded
SVN? I haven't heard of that one before. ._."
|
|
#29
|
|||||
|
|||||
|
Re: Really underhanded
|
|
#30
|
||||
|
||||
|
Re: Really underhanded
Ahh. Well I have been working on a way to share my code to make trouble shooting a lot easier, not only within my team, but also allowing other teams to help as well.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|