Go to Post It's The Hunger Games and those lucky teams are Prim. - Gregor [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-01-2013, 11:43
SBrosious's Avatar
SBrosious SBrosious is offline
AngelicArtist
AKA: Sebastian Brosious
FRC #4085 (Techinical Difficulties)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Ohio
Posts: 9
SBrosious is an unknown quantity at this point
Talon Programming

Unfortunately, we (Programmers) were asked to program the new Talons, we are new to java so we have no clue what we should manually program into our robot to work. Its been giving us issues so if you could teach me how to create a tank drive program. id be SUPER thankful
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2013, 11:57
F22Rapture's Avatar
F22Rapture F22Rapture is offline
College Student, Mentor
AKA: Daniel A
FRC #3737 (4H Rotoraptors)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Goldsboro, NC
Posts: 476
F22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant futureF22Rapture has a brilliant future
Re: Talon Programming

Quote:
Originally Posted by SBrosious View Post
Unfortunately, we (Programmers) were asked to program the new Talons, we are new to java so we have no clue what we should manually program into our robot to work. Its been giving us issues so if you could teach me how to create a tank drive program. id be SUPER thankful
It's no different than using Victors or PWM Jaguars in code, just a different keyword.

Code:
      

        Talon frontLeftMotor = new Talon(1);
        Talon rearLeftMotor = new Talon(2);
        Talon frontRightMotor = new Talon(3);
        Talon rearRightMotor = new Talon(4);

        drive = new RobotDrive(frontLeftMotor, rearLeftMotor,
                frontRightMotor, rearRightMotor);
__________________
Research is what I’m doing when I don’t know what I’m doing.
- Wernher von Braun
Attending: Raleigh NC Regional
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2013, 13:13
SBrosious's Avatar
SBrosious SBrosious is offline
AngelicArtist
AKA: Sebastian Brosious
FRC #4085 (Techinical Difficulties)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Ohio
Posts: 9
SBrosious is an unknown quantity at this point
Re: Talon Programming

Thanks you so much but for some reason it still wont move the robot, it gives recongition that its being called but no movement is there a way to set up how the axis of each joystick vary is what the speed controller should be set for. or something along the lines.?
Reply With Quote
  #4   Spotlight this post!  
Unread 18-01-2013, 17:04
Team3266Spencer's Avatar
Team3266Spencer Team3266Spencer is offline
Team Captain and Lead Programmer
AKA: Spencer Lanman
FRC #3266 (Robots-R-US)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Richmond, Indiana
Posts: 280
Team3266Spencer is an unknown quantity at this point
Re: Talon Programming

You have to call the drive() method with a Joystick object as the parameter in the operatorControl() method.
__________________
2012: Buckeye Regional, Queen City Regional, Human Player
2013: Queen City Regional, Buckeye Regional, Crossroads Regional
Shooter Operator
2014: Crossroads Regional, Queen City Regional
Catapult Operator
2015: Georgia Southern Classic Regional (Winner), Queen City Regional
Chainsaw Operator
Want to talk? TeamSpeak: team3266.noip.me
Reply With Quote
Reply


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:49.

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