Go to Post "Find a problem? Think of the three I's: Invent and Innovate to Improve!" - yash101 [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 16-01-2013, 18:20
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: Talon Question

In order to command the motors you need to call the .set() method

so something like StageOneTalon.set(1); will drive it at full speed.

I didn't see this anywhere in your code, maybe I overlooked it?

On another note, it seems like you are creating multiple references of the same class unnecessarily. I.E. creating a new Team3375 reference in your drive class.

All of your functional classes (i.e drive, shooter) should be independent of your main Class (Team3373) . In other words you should not need to create a new instance of your main class in your functional classes.

Once your functional classes are defined. Your main class (Team3375) should import those classes and create instances of them, then call the methods within them.

I would suggest you do a search on github and chief delphi for some 2012 FRC example code, and maybe move to a more structured Java environment like iterative or commandBase.

We personally use commandBase, and while we find iterativeRobot to be the easiest to grasp out of the box amongst students, we find CommandBase to be the easiest to code once you grasp the architecture.


Hope this helps,
Kev
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2013, 18:34
Peragore's Avatar
Peragore Peragore is offline
CEO of Black Magic
AKA: Philip Mulford
FRC #3373 (Team Robohawk)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: US
Posts: 50
Peragore is an unknown quantity at this point
Re: Talon Question

Thanks! I believe our Talon.set() commands were within the shooter class. Anyways, as to the other things, I haven't really looked at Iterative Robot or command base, but that sounds like something I need to look into. The Drive class is something that hasn't really been worked on at all, because our team has not given us Drive specs yet, so we are unsure of whether they are using Mechanum or standard Drivetrain. After spending the week searching for anything and everything that had gone wrong, we found that electrical had messed up, so the code was actually functional, to an extent.... Thanks for the time and advice. As I said, we are new to Java, and this is really the first year we are codifying our processes...

Thanks again!
__________________


Code:
 
while (life){
  frcObsession = true;
  obs.ProgramAndObsess();
}
if (!life) life = true;
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 10:09.

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