Go to Post Like my programming class teacher has said multiple times: "Stop complaining on reddit about your code not compiling and actually fix it". - [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2013, 11:43
ethan_orion ethan_orion is offline
Registered User
FTC #0071
 
Join Date: Oct 2009
Location: Wyoming
Posts: 48
ethan_orion will become famous soon enoughethan_orion will become famous soon enough
[FTC]: Programming

Dear FTC Teams,

We like to run a subroutine which runs a DC motor and a servo motor.
Basically resetting the position of our arm and hand back to a position for grabbing rings. We'd like to do this while driving back to the ring stand.

Do we need encoders to make sure this happens?
We'd like to do this from only one controller.

Any snags we have to watch out for when trying to code this?

Thanks!
FTC 71
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2013, 12:01
Mr. 1033's Avatar
Mr. 1033 Mr. 1033 is offline
Registered User
AKA: Paul E. Lathrop
FRC #1033 (Team CLUTCH)
Team Role: Coach
 
Join Date: Jun 2012
Rookie Year: 2003
Location: United States
Posts: 40
Mr. 1033 is a jewel in the roughMr. 1033 is a jewel in the roughMr. 1033 is a jewel in the roughMr. 1033 is a jewel in the rough
Re: [FTC]: Programming

What programming language is your team using?

If it's LabView my team FTC 1033 can help.

If it's Robot C I have a guy on my FRC Team that programs his robot in Robot C.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2013, 12:02
ethan_orion ethan_orion is offline
Registered User
FTC #0071
 
Join Date: Oct 2009
Location: Wyoming
Posts: 48
ethan_orion will become famous soon enoughethan_orion will become famous soon enough
Re: [FTC]: Programming

RobotC
Reply With Quote
  #4   Spotlight this post!  
Unread 23-01-2013, 12:03
ethan_orion ethan_orion is offline
Registered User
FTC #0071
 
Join Date: Oct 2009
Location: Wyoming
Posts: 48
ethan_orion will become famous soon enoughethan_orion will become famous soon enough
Re: [FTC]: Programming

We currently have a button we push that resets our arm.
we'd like to incorporate that into our drive routine such that we can push the button and then continue driving around.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-01-2013, 12:08
Mr. 1033's Avatar
Mr. 1033 Mr. 1033 is offline
Registered User
AKA: Paul E. Lathrop
FRC #1033 (Team CLUTCH)
Team Role: Coach
 
Join Date: Jun 2012
Rookie Year: 2003
Location: United States
Posts: 40
Mr. 1033 is a jewel in the roughMr. 1033 is a jewel in the roughMr. 1033 is a jewel in the roughMr. 1033 is a jewel in the rough
Re: [FTC]: Programming

Shoot me an email and I'll have him respond to you at 3pm when he gets into our lab.

paulelathrop@gmail.com
Reply With Quote
  #6   Spotlight this post!  
Unread 23-01-2013, 14:14
ferret_guy ferret_guy is offline
Registered User
AKA: Mark Omo
FRC #1703 (RATS)
Team Role: Leadership
 
Join Date: Mar 2012
Rookie Year: 2008
Location: Henderson
Posts: 97
ferret_guy is on a distinguished road
Re: [FTC]: Programming

you need to do something like this (my robotc is a little rusty)

Code:
var button-pressed

if button1 = 1
     { button-pressed = 1}
      ELSE {}
if button-pressed = 1
     { if arm > goal
          {armdown}
         ELSE
          {armstop
            button-pressed = 0}
     }
     ELSE {}
Reply With Quote
  #7   Spotlight this post!  
Unread 25-01-2013, 15:46
ethan_orion ethan_orion is offline
Registered User
FTC #0071
 
Join Date: Oct 2009
Location: Wyoming
Posts: 48
ethan_orion will become famous soon enoughethan_orion will become famous soon enough
Re: [FTC]: Programming

That part we have. The difficult part is that the DC motor runs with a time interval and so we are in a time dependent while loop so we can't access our button. we'd like to run a time dependent loop while at the same accessing the signals of the controller.
Reply With Quote
  #8   Spotlight this post!  
Unread 25-01-2013, 15:48
ferret_guy ferret_guy is offline
Registered User
AKA: Mark Omo
FRC #1703 (RATS)
Team Role: Leadership
 
Join Date: Mar 2012
Rookie Year: 2008
Location: Henderson
Posts: 97
ferret_guy is on a distinguished road
you start a timer and check if it has reached the target time but an encoder is bettor
Reply With Quote
  #9   Spotlight this post!  
Unread 25-01-2013, 16:09
ethan_orion ethan_orion is offline
Registered User
FTC #0071
 
Join Date: Oct 2009
Location: Wyoming
Posts: 48
ethan_orion will become famous soon enoughethan_orion will become famous soon enough
Re: [FTC]: Programming

great. we're going to try both.
thanks.
Reply With Quote
  #10   Spotlight this post!  
Unread 21-02-2013, 14:07
OctagonMaster OctagonMaster is offline
Registered User
FTC #0116 (Crazy Eights)
Team Role: Mentor
 
Join Date: Jun 2010
Rookie Year: 2007
Location: Chicago
Posts: 6
OctagonMaster is an unknown quantity at this point
Re: [FTC]: Programming

Hey we are having the worst time making our robot move forward after locking on to the ir beacon, when it does move forward the arm continues to extend (almost breaking) can anyone help. We are using labview.
Reply With Quote
  #11   Spotlight this post!  
Unread 21-02-2013, 15:05
ferret_guy ferret_guy is offline
Registered User
AKA: Mark Omo
FRC #1703 (RATS)
Team Role: Leadership
 
Join Date: Mar 2012
Rookie Year: 2008
Location: Henderson
Posts: 97
ferret_guy is on a distinguished road
Quote:
Originally Posted by OctagonMaster View Post
Hey we are having the worst time making our robot move forward after locking on to the ir beacon, when it does move forward the arm continues to extend (almost breaking) can anyone help. We are using labview.
could you post a screen shot of the relevent code
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


All times are GMT -5. The time now is 07:53.

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