|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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 |
|
#2
|
|||
|
|||
|
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 {}
|
|
#3
|
|||
|
|||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|