View Single Post
  #2   Spotlight this post!  
Unread 12-02-2011, 05:49
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Autonomous-Analog Signals?

Assuming this is in Autonomous, put a small loop around the Read Voltage and the compare.

You may also want to consider other conditions which would stop the loop and turn off the motor. In other words, is there a time limit that makes sense, or should the motor run no matter what until the switch is hit. You may also want a small delay in the loop -- check every 10ms or so.

Greg McKaskle
Reply With Quote