View Single Post
  #2   Spotlight this post!  
Unread 14-10-2010, 19:48
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: Whats wrong with this code?

I don't see a problem with the code that I see.

First, I'd look at the Diagnostics tab to make sure there aren't messages explaining that there was a misspelling or other explanation. Make sure that the watchdog hasn't shut down the robot since I don't see a feed anywhere on the screen.

Finally, with the robot in that state, place some probes via right clicking on wires, and push a button.

One thing I'll throw out is that 10% motor power or 0.1 may not be enough to move the motor. If you see that your logic is correct and you are sending 10%, change the constants to controls so that you can tweak the values more easily, find the values that work, then make current values default.

Also, button one should be easier to debug as you can look at the solenoid module LEDs.

Greg McKaskle
Reply With Quote