Go to Post FIRST is just a single step in a multi-step process. Rome wasn't built in a day, and neither are solutions to the world's problems. - Tim Baird [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, 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
  #2   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
  #3   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
  #4   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
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 12:41.

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