Don't run from robot main for now until you understand how that operates (and doesn't operate).
That only puts code temporarily onto the roboRIO. You can work out what steps you are missing running that way later.
First, put a permanent copy of your code onto the roboRIO using
Build and
Run as startup as Nirnaeth described and get that working.
Steps are here:
http://wpilib.screenstepslive.com/s/...p-test-program
Then whenever you power cycle the robot, or connect and disconnect, you will still have some code running.