|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Really underhanded
The only real form of communication we have at the moment is a teacher run twitter page, so I will look into something like this sooner than later.
We thought about using a google Doc but decided against it. |
|
#2
|
||||
|
||||
|
Re: Really underhanded
After eight days of snow and a 2 hour meeting after school we have a wheel spinning. Only one, and it is thanks to a sample program and a few screen steps.
|
|
#3
|
||||
|
||||
|
Re: Really underhanded
If you'd like to PM me to exchange email addresses, I'd be happy to send you some basic drive code, with examples for setting up a Digital Imput, Relay, and a mechanism motor.
Also, it is possible to get to the source file and view it with WordPad. To find the source file for your project, open the Workspace folder, and the folder within that has your project name. Within that, open "src", then "org", "usfirst", "frc", "team####", "robot", and at the bottom of the tree, you'll find a file named "Robot.java. That is your source file for the project. You can copy it, view it, and even edit and replace it. (But keep a copy of the original, if you decide to make any changes!). If you just want to take it home to study, or for documentation, you can always print it from within eclipse, using a utility like Cute pdf. Hope this helps. |
|
#4
|
|||
|
|||
|
Re: Really underhanded
Hello-- I'm the programming mentor for 3018 Nordic Storm, and our programming team this year is new to java. But here is how we approached it.
What you are asking should be doable in 7 lines of Java written and about 10 labels provided to Robot builder and about 7 items added to robot builder, 2 chekbuttons pressed and 6 dropdown selections made in Robot builder. *Very Briefly* In Robot builder:
In Eclipse:
Above is essentially how I led our programmers through the task of programming our mecanum chassis. There may be some typos, but it is relatively complete Here is the above sequence with a lot more details
Hopefully this will prove helpful. There are also some great YouTube videos about RobotBuilder published 2 years ago here: https://www.youtube.com/watch?v=k7Pa...lgn vhGObeKzp that I recommend to understand the wonderful CommandBase architecture provided by WPILib. It takes a bit of skill to properly use CommandBase-- choosing your subsystem functionally that you expose is key. Only using commands to access that functionality of your subsystems is key. For example, say you have a switch in a toteCollector subsystem that lets you know when one tote is loaded. You *could* write a method called bool getToteCollectorSwitchState(), or worse DigitalInput getToteCollectorSwitch() but you will find it it quickly tedious to use. The whole point of a subsystem is to *hide* details and expose only those things that you deem commandable or askable. Instead consider the approach bool isTote1Loaded() { } Now the switch is hidden from the subsystem's external callers-- they don't need to know how the switch works in the subsystem, nor should they care. What they need to know is if the tote is loaded. This gives your subsystem flexibility to change to a light sensor or a pressure sensor instead of a digital switch, but any commands that need to know when tote #1 is loaded won't need to be changed. |
|
#5
|
||||
|
||||
|
Re: Really underhanded
I will look into this though out the day, we havent dabbled much with Robot builder, as we have been waiting for our programming mentor (who we only see on saturdays) to assist us with this matter. With these instructions and what i have found elsewhere its worth the shot.
Please ignore my ignorence, on our team we really stress the "The Kids Run The Team" Motto, so I have had a lot on my plate and offered not to be the head programmer for this exact reason. |
|
#6
|
||||
|
||||
|
Re: Really underhanded
Quote:
The major issue at hand is that the wheels are all spinning at different paces although they are all the same ( and by that I mean is that they are all controlled by talons |
|
#7
|
|||||
|
|||||
|
Re: Really underhanded
Quote:
|
|
#8
|
||||
|
||||
|
Re: Really underhanded
Quote:
|
|
#9
|
|||||
|
|||||
|
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.
|
|
#10
|
||||
|
||||
|
Re: Really underhanded
Quote:
|
|
#11
|
|||||
|
|||||
|
Re: Really underhanded
Oops, missed that step. Correct.
|
|
#12
|
||||
|
||||
|
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? |
|
#13
|
|||||
|
|||||
|
Re: Really underhanded
Quote:
|
|
#14
|
||||
|
||||
|
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.
|
|
#15
|
|||||
|
|||||
|
Re: Really underhanded
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|