Go to Post Math is always fun, especially when it's useful. - Guy Davidson [more]
Home
Go Back   Chief Delphi > FIRST > Rumor Mill
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 28-01-2006, 23:58
sirbleedsalot's Avatar
sirbleedsalot sirbleedsalot is offline
Registered User
FRC #0939
Team Role: Student
 
Join Date: Feb 2004
Location: New Effington South Dakota
Posts: 178
sirbleedsalot has a spectacular aura aboutsirbleedsalot has a spectacular aura aboutsirbleedsalot has a spectacular aura about
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.
__________________
our web site
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2006, 00:36
EricH's Avatar
EricH EricH is online now
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,699
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
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.)
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2006, 13:06
Nuttyman54's Avatar
Nuttyman54 Nuttyman54 is offline
Mentor, Tactician
AKA: Evan "Numbers" Morrison
FRC #5803 (Apex Robotics) and FRC #0971 (Spartan Robotics)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Seattle, WA/Mountain View, CA
Posts: 2,133
Nuttyman54 has a reputation beyond reputeNuttyman54 has a reputation beyond reputeNuttyman54 has a reputation beyond reputeNuttyman54 has a reputation beyond reputeNuttyman54 has a reputation beyond reputeNuttyman54 has a reputation beyond reputeNuttyman54 has a reputation beyond reputeNuttyman54 has a reputation beyond reputeNuttyman54 has a reputation beyond reputeNuttyman54 has a reputation beyond reputeNuttyman54 has a reputation beyond repute
Send a message via AIM to Nuttyman54
Re: Who has a finished robot?

Quote:
Originally Posted by sirbleedsalot
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.
search in the easy-c section of the programming forum. if it's not there, post
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2006, 16:07
David55 David55 is offline
Registered User
AKA: David Hillman
FRC #1577 (Steampunk) & FRC #125 (NUTRONS)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Raanana, Israel / Boston, MA
Posts: 279
David55 is a splendid one to beholdDavid55 is a splendid one to beholdDavid55 is a splendid one to beholdDavid55 is a splendid one to beholdDavid55 is a splendid one to beholdDavid55 is a splendid one to behold
Re: Who has a finished robot?

Quote:
Originally Posted by sirbleedsalot
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.
if(p1_sw_trig==1)
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 30-01-2006, 07:24
Daniel_LaFleur's Avatar
Daniel_LaFleur Daniel_LaFleur is offline
Mad Scientist
AKA: Me
FRC #2040 (DERT)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2003
Location: Peoria, IL
Posts: 1,945
Daniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond reputeDaniel_LaFleur has a reputation beyond repute
Send a message via MSN to Daniel_LaFleur
Re: Who has a finished robot?

Quote:
Originally Posted by David55
if(p1_sw_trig==1)
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.
I would not use '0' or '255' as PWM #s. Use '1' and '254'. two '255's in a row indicate end of packet and can cause some erratic behavior.

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.
Reply With Quote
  #6   Spotlight this post!  
Unread 30-01-2006, 09:17
StephLee's Avatar
StephLee StephLee is offline
Deadlines? What are those?
AKA: Stephanie
FRC #0639 (Code Red Robotics)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Ithaca, NY
Posts: 796
StephLee has a reputation beyond reputeStephLee has a reputation beyond reputeStephLee has a reputation beyond reputeStephLee has a reputation beyond reputeStephLee has a reputation beyond reputeStephLee has a reputation beyond reputeStephLee has a reputation beyond reputeStephLee has a reputation beyond reputeStephLee has a reputation beyond reputeStephLee has a reputation beyond reputeStephLee has a reputation beyond repute
Send a message via AIM to StephLee
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...
__________________
Proud alum of FRC Team 1629 and mentor of FRC Team 639
Cornell Engineering class of 2012!!
Reply With Quote
  #7   Spotlight this post!  
Unread 31-01-2006, 20:24
ShaneP's Avatar
ShaneP ShaneP is offline
Lead Mentor
FRC #0330 (The Beach Bots)
Team Role: Coach
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Hermosa Beach
Posts: 158
ShaneP is a splendid one to beholdShaneP is a splendid one to beholdShaneP is a splendid one to beholdShaneP is a splendid one to beholdShaneP is a splendid one to beholdShaneP is a splendid one to beholdShaneP is a splendid one to beholdShaneP is a splendid one to behold
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.

Reply With Quote
  #8   Spotlight this post!  
Unread 31-01-2006, 21:45
Donut Donut is offline
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,272
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
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.
Reply With Quote
  #9   Spotlight this post!  
Unread 31-01-2006, 23:11
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: Who has a finished robot?

Quote:
Originally Posted by Donut
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.
3 days? That's 72 hours of pure testing! Luxury!

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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 19:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi