Go to Post Sorry [the easy button] does not exist in robotics :D - Arkorobotics [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:27.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi