|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
||||
|
||||
|
Re: Who has a finished robot?
My team is not finished yet but it seems you guys could help me out, how do i program my robot to have a motor spin counter clockwise when i pull the trigger on the joystick, then released it stops turning the motor, and when i press the thumb button i want the motor to spin clockwise. I am using easyc and i was wondering how to write that code. Please help.
|
|
#17
|
|||||
|
|||||
|
Re: Who has a finished robot?
Done???? What does this word mean? In FIRST, no robot is "done" until at least after the last competition of the year (offseason or otherwise). And we still aren't done with our '04 bot--it's been used as a practice bot for last year and a sensor testbed this year. (I know of a team that modified their robot in a big way between Championship and IRI last year. 'Nuff said.)
|
|
#18
|
|||||
|
|||||
|
Re: Who has a finished robot?
Quote:
|
|
#19
|
||||
|
||||
|
Re: Who has a finished robot?
Quote:
pwm01=0; else if(p1_sw_trig==0) pwm01=127; if(p1_sw_top==1) pwm01=255; else if(p1_sw_top==0) pwm01=127; This is how you would do it in mplab...not sure if it will work in easy c. The "p1's" in the "if's" are dependent on what port your joystick is plugged into in the OI. If your joystick is plugged into port 2- change it to p2_sw_trig. Also...the ""pwm01" should be changed to whatever pwm your motor is connected to. You should also check if the thumb button is p1_sw_top...it could also be p1_sw_aux1 or p1_sw_aux2. Please tell me if I confused you and I will try to make it simpler. |
|
#20
|
||||
|
||||
|
Re: Who has a finished robot?
When we mean finished, we mean "it's working in full, functional form," not "let's sell this as the next GM hybrid." And by the first definition, we're shooting for a completely-constructed bot by Thursday (and it gives me time to work on my other duties: awards.)
|
|
#21
|
||||
|
||||
|
Re: Who has a finished robot?
I understand what you are saying, however i am not building it in MPLAB, if i was to build it there is there a defualt code that already is programmed to drive the bot. In easyc i need to know what to drag and drop into the code(pwm control, OI to Digital output, OI to analog, and that whole list) what i would drag and drop.
|
|
#22
|
||||
|
||||
|
Re: Who has a finished robot?
Then I cannot help much, since my team is not using much of the EasyC yet.
|
|
#23
|
||||
|
||||
|
Re: Who has a finished robot?
Quote:
I havent looked at easy C but you should be able to look at the code behind each icon and edit it, thus the code above should be useable. Good luck. |
|
#24
|
|||||
|
|||||
|
Re: Who has a finished robot?
Our robot can't drive yet.
We've got our priorities backwards; we have several of the harder aspects done to the point where they work decently well, but the "easier" things we have yet to finish. Now we're trying to get it to the point where we can have our drive team start playing with it to figure out what needs to be changed. We're way behind where we were this time last year, but that's because we're pushing our limits a lot more this year. I just hope it can move before ship date... ![]() |
|
#25
|
|||||
|
|||||
|
Re: Who has a finished robot?
I suppose you could say that robots are never done with, until they are permanently sitting in the robot grave yard.
But as for finished robots for this season, I doubt any team is done just yet. Even if they were, there would still be brainstorming of how to make it better. ![]() |
|
#26
|
||||
|
||||
|
Re: Who has a finished robot?
We've already been informed by our mechanical group today that with how things are going building wise, we'll have ~3 days to actually test code. No finished robots anytime soon at our school.
We have most (or all) of the chassis built, the problem is electrical is way behind (all new people and difficulty in getting engineers in to help put us there), and they still have to finish alot of the "extra" parts that go on the chassis. Programming we've managed to jump from no code to almost all manual control done in only 3 days. I'll check Easy C tonight and try to figure that one out. |
|
#27
|
|||||
|
|||||
|
Re: Who has a finished robot?
Quote:
|
|
#28
|
||||
|
||||
|
Re: Who has a finished robot?
Quote:
Two years ago, our team didn't finish our bot until the last hour of pit day (that's not really legal anymore), and we spent entirely too much time creatively shedding weight in the pits. So, as you might imagine, the code wasn't, err, optimal. Last year we had plenty of time with the kitbot, but the final bot wasn't really ready until ship day (with some substantial changes), so it was again a lot of pit engineering getting the code up to snuff. That said, our team this year seems to be in good shape, especially with respect to the building, and the software is coming along nicely with incremental features added. This year's bot will never be "done", it will just keep getting better and better. |
|
#29
|
||||
|
||||
|
Re: Who has a finished robot?
*gasp* robot? what robot? we were suppose to build a robot?
we've only began, but we'll get there. ![]() |
|
#30
|
|||
|
|||
|
Re: Who has a finished robot?
well, our team isn't actually building a robot, we're covering our team leader in foil. so, technically we are finished. we just have to figure our shipping and handling packages.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pre-Rookie Teams - The How To | Keith Chester | General Forum | 6 | 17-09-2008 00:28 |
| Team 701s finished robot | Salik Syed | Robot Showcase | 14 | 28-01-2006 11:00 |
| Is allowing a practice robot good for FIRST? | Matt Adams | General Forum | 38 | 19-01-2005 11:35 |
| what kind of robot will win? | Bcahn836 | Championship Event | 44 | 12-04-2004 00:02 |
| Robot Collaboration | Karthik | General Forum | 153 | 18-02-2004 03:40 |