View Single Post
  #1   Spotlight this post!  
Unread 14-01-2008, 19:12
Nightfall831 Nightfall831 is offline
Registered User
AKA: Paul
FRC #0888 (Robotiators)
Team Role: Alumni
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Maryland
Posts: 29
Nightfall831 will become famous soon enoughNightfall831 will become famous soon enough
Send a message via AIM to Nightfall831
Getting constant motor power with IR board

today i put the ir board on our robot after some preliminary testing and I have managed to get the robot to respond to the IR signals sent to the IR board.

however, the motors only run for as long as the IR board recieves a signal (less than a second)

our current code looks something like
Code:
if (rc_dig_in01)
     {
          pwm03 = pwm04 = 1;
          pwm07 = pwm08 = 255;
     }
i am not surprised at the result i am getting, but all attempts to create constant motion have failed. the only way i can think of is to have the remote cause a variable to be "true" and so that

Code:
while (variable = true)
     {
          pwm03 = pwm04 = 1;
          pwm07 = pwm08 = 255;
     }
or something to that effect

any suggestions?
__________________


That's a PEBKAC problem. (Problem Exists Between Keyboard And Chair)
^Yea, I never run into those...