View Single Post
  #1   Spotlight this post!  
Unread 01-11-2011, 21:46
Thundrio Thundrio is offline
Dedicated Racer
FRC #3673
 
Join Date: Feb 2011
Rookie Year: 2010
Location: The Internet
Posts: 67
Thundrio is on a distinguished road
Should this code work as intended?

I'm the lead programmer for my team (this is our second year) and last year we used LabView, but I'm trying to get java ready for the build season. I wrote some code I thought should work, but it isn't. There are no compiling errors and when I tell it to deploy, the crio restarts like it should.

I want to know if something is wrong with my code, or if there must be something wrong with configuration somewhere (it will help to know which so I don't have to examine both possibilities).

This code should make the Jaguar in pwm 1 start going during autonomous(at least that is my intention)

Code:
//copyright shite

package edu.wpi.first.wpilibj.templates;


import edu.wpi.first.wpilibj.SimpleRobot;
import edu.wpi.first.wpilibj.Jaguar;


//the vm automatially runs this shizzy class
public class SimpleBob extends SimpleRobot {
     Jaguar test = new Jaguar(1);
    
    //called during autonomous
    public void autonomous() {
         test.set(0.75);
    }

    //called during operator control period of time
    public void operatorControl() {

    }
}
thanks for all help
__________________
Interested in a new way of playing old games?
visit http://www.speedrunslive.com for a way to make single player games multiplayer!
visit http://www.zeldaspeedruns.com to open up a new world for zelda lovers!
pm me here or at zsr for more information!
Reply With Quote