|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
More automonous help:ending stuff
OK! I got a line sensor code (verrrrrry basic) and I would like to now a few things:
1. I know the robot will arrive at the T in under 15 secs, so how do I stop it and do something different? 2. If I stop it, we would like to raise our arm (on winch), which is on a PWM. 3. How would I stop the arm? Same way as # 1? Code:
if (rc_dig_in01 == 0 && rc_dig_in02 == 0 && rc_dig_in03 == 0)
{
pwm13 = 127;
pwm15 = 127;
}
else if (rc_dig_in01 == 0 && rc_dig_in02 == 0 && rc_dig_in03 == 1)
{
pwm13 = 139;
pwm15 = 175;
}
else if (rc_dig_in01 == 1 && rc_dig_in02 == 0 && rc_dig_in03 == 0)
{
pwm13 = 175;
pwm15 = 139;
}
else if (rc_dig_in01 == 0 && rc_dig_in02 == 1 && rc_dig_in03 == 0)
{
pwm13 = 249;
pwm15 = 249;
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please - stop posting needless stuff! | Andy Baker | Announcements | 0 | 13-01-2004 09:13 |
| Free stuff at FIRST | Not2B | General Forum | 7 | 30-09-2003 21:23 |
| What does everyone like to do besides FIRST stuff?? | Katie_269 | Chit-Chat | 45 | 17-07-2002 17:01 |
| who can we buy stuff from?!?! | archiver | 2001 | 7 | 23-06-2002 23:04 |
| How much robotics stuff is on your resumes??? | Robby O | Career | 14 | 03-08-2001 19:51 |