View Single Post
  #6   Spotlight this post!  
Unread 15-01-2012, 12:42
pmalmsten pmalmsten is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2006
Location: United States
Posts: 9
pmalmsten is on a distinguished road
Re: SimpleTemplate project not working

The SimpleRobotTemplateProject does not include any code to read sensors, drive wheels, etc. It's only a template for a project, not an example. It will do nothing.

To make this do something, you will need to create your own motor objects and joystick objects. There's a method called operatorControl() in the code included within the SimpleRobotTemplateProject; this will be called when the robot enters teleoperated mode. Put your code there.

Take a look inside the sample projects or look at the documentation for WPILib to see how this works.
__________________
~Paul Malmsten
Reply With Quote