|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
We built a robot that has a 6 wheel drive system or tank drive without tread and we need help coding the robot to work with a Xbox controller and our shooting arm to work with a joystick. I have tried to learn how to use eclipse and have figured out a little bit but not enough. Would anybody be willing to teach me at least the driving portion so I can teach others on my team and do the arm on my own or help me get the code done for this year and I will learn on my own later?
Last edited by ajhammond : 02-11-2016 at 11:01 PM. |
|
#2
|
|||
|
|||
|
Re: Rookie team lost only programmer and need help.
Hey, I can try to help out. Can I take a look at what code you have? Or do you not have any?
|
|
#3
|
||||
|
||||
|
Re: Rookie team lost only programmer and need help.
I would start with Brad Miller's videos. Pretty much will get you going step by step.
https://www.youtube.com/playlist?lis...wtlgnvhGObeKzp |
|
#4
|
||||
|
||||
|
Re: Rookie team lost only programmer and need help.
Quote:
|
|
#5
|
|||
|
|||
|
Re: Rookie team lost only programmer and need help.
Quote:
![]() |
|
#6
|
|||||
|
|||||
|
Re: Rookie team lost only programmer and need help.
Given that you're at the end of week 5 with no programming done, you need to take stock of your resources. Do you have anyone who knows anything about programming in C, C++, Java, Python, or Labview? If so, use that language. If one of the first three, go through the screenstepslive pages for the language; they'll show you how to set up a tank/arcade style drive and even control some fairly basic arms and intakes. They even have some full-up samples ready to drop onto a robot if you're willing to wire to the same channels they used. National Instruments has similar resources for LabView. I'm not familiar with the Python resources, but I know they're out there. You should be able to get through the basics based on these tutorials and then come back to CD or another support site with more specific questions.
|
|
#7
|
||||
|
||||
|
Re: Rookie team lost only programmer and need help.
I think the fastest is to take one of the sample code that resembles most to your robot and make minor modifications to it to match your robot. You should be able to have a runnable TeleOp by this method. Then you need to prioritize what you need to get working next and add code for each subsystems one at a time. With your current situation, I would give up autonomous.
|
|
#8
|
|||
|
|||
|
Re: Rookie team lost only programmer and need help.
Quote:
![]() |
|
#9
|
|||
|
|||
|
Re: Rookie team lost only programmer and need help.
Where do I find the sample code?
|
|
#10
|
||||
|
||||
|
Re: Rookie team lost only programmer and need help.
If you have Eclipse and all FRC stuff installed, you can click "File->New...->Project" then you will find at the bottom "WPI Robot Java Development" and underneath that you will see "Example Robot Java Project". Select that and click "Next". Then you have a whole list of example robots to choose from. If you are planning to have a drive base that does tank drive, you may want to look at the "Tank Drive" project. Please look through the list and find a robot that most resemble to your robot.
|
|
#11
|
||||
|
||||
|
Re: Rookie team lost only programmer and need help.
For XBox programming, Team 4276 created a small class that maps the XBox buttons to their respective buttons and axes. Hope this saves you some time.
XBox.zip |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|