Go to Post I might be singing a different tune if I get a water jet for Christmas. :) - FrankJ [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-02-2016, 00:19
CyberTeam5713 CyberTeam5713 is offline
Registered User
FRC #5713
 
Join Date: Feb 2016
Location: Michigan
Posts: 25
CyberTeam5713 is an unknown quantity at this point
Please Answer My Question !!!!

If I wanted to make my shooter shoot in autonomous how would I do that ?

Also can anyone show me a example of a autonomous program ?


Also how do I set up different autonomous programs to choose from in SmartDashBoard ?

Please Answer the following questions programming geniuses.

I'm Running a Iterative Class

Last edited by CyberTeam5713 : 18-02-2016 at 00:26.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2016, 00:21
MaGiC_PiKaChU's Avatar
MaGiC_PiKaChU MaGiC_PiKaChU is offline
Drive Coach
AKA: Antoine L.
FRC #3360 (Hyperion)
Team Role: Mentor
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Sherbrooke
Posts: 608
MaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond reputeMaGiC_PiKaChU has a reputation beyond repute
Re: Please Answer My Question !!!!

Quote:
Originally Posted by CyberTeam5713 View Post
If I wanted to make my shooter shoot in autonomous how would I do that ?

Also can anyone show me a example of a autonomous program ?


Also how do I set up different autonomous programs to choose from in SmartDashBoard ?

Please Answer the following questions programming geniuses.

Are you running command based in Java?

If you are, then your autonomous program is litterally a command group with a sequence of commands.

you add your commands like this

addSequential(new myCommand1);
addSequential(new myCommand2);

if you want to run 2 commands at the same time:

addParallel(myCommand1);
addSequential(myCommand2);
__________________
2012 - 3360 - Junior member
2013 - 3360 - Lead Programmer, Human player
2014 - 3360 - Lead Programmer, Human player
2015 - 3360 - Lead Programmer, Driver
2016 - 3360 - Mentor, Drive coach




Last edited by MaGiC_PiKaChU : 18-02-2016 at 00:23.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2016, 00:25
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,212
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Please Answer My Question !!!!

> If I wanted to make my shooter shoot in autonomous how would I do that ?

In AutonomousPeriodic, turn on your shooter and shoot.

Now, if you want to score, and avoid fouls (like having to be in contact with the courtyard carpet before launching a boulder), that is much more difficult.

Starting from the Spy Box would be a much easier problem. When your team places the robot, line it up with the goal.

> Also how do I set up different autonomous programs to choose from in SmartDashBoard ?

Have some method to set a variable: dip switches on the robot (connected to analog or digital input), Digital switches on the Dashboard, or use a field on the smart dashboard.

In AutonomousInit, read the switches.
In AutonomousPeriod, do whatever you have to do, based upon the switch setting.

BTW: Can you drive your robot yet? That is a more fundamental problem. If you can't drive, you can't do much in Autonomous, or Teleop.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2016, 00:26
CyberTeam5713 CyberTeam5713 is offline
Registered User
FRC #5713
 
Join Date: Feb 2016
Location: Michigan
Posts: 25
CyberTeam5713 is an unknown quantity at this point
Re: Please Answer My Question !!!!

Thank you for replying but I am running Iterative
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2016, 00:28
CyberTeam5713 CyberTeam5713 is offline
Registered User
FRC #5713
 
Join Date: Feb 2016
Location: Michigan
Posts: 25
CyberTeam5713 is an unknown quantity at this point
Re: Please Answer My Question !!!!

Thank you
Reply With Quote
  #6   Spotlight this post!  
Unread 18-02-2016, 00:32
CyberTeam5713 CyberTeam5713 is offline
Registered User
FRC #5713
 
Join Date: Feb 2016
Location: Michigan
Posts: 25
CyberTeam5713 is an unknown quantity at this point
Rich

Yes we can drive
Reply With Quote
  #7   Spotlight this post!  
Unread 18-02-2016, 00:44
rich2202 rich2202 is offline
Registered User
FRC #2202 (BEAST Robotics)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Wisconsin
Posts: 1,212
rich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond reputerich2202 has a reputation beyond repute
Re: Rich

Quote:
Originally Posted by CyberTeam5713 View Post
Yes we can drive
Autonomous is just like Teleop. The only difference is: Instead of getting commands from the Controller, you pre-define the sequence of commands.

So, drive straight for a period of time. Shoot the Boulder.
Reply With Quote
  #8   Spotlight this post!  
Unread 18-02-2016, 13:49
mreynolds's Avatar
mreynolds mreynolds is offline
Team Captain | Head of Controls
AKA: Matthew Reynolds
FRC #4946 (The Alpha Dogs)
Team Role: Programmer
 
Join Date: Sep 2015
Rookie Year: 2014
Location: Ontario, Canada
Posts: 9
mreynolds is an unknown quantity at this point
If you create an example program in eclipse, it should have an example of how to use the smart dashboard to select your auto script. You should find a SendableChooser object in the robot.Java, which is the radio-button selector thing in the smart dashboard
Reply With Quote
  #9   Spotlight this post!  
Unread 18-02-2016, 13:50
mreynolds's Avatar
mreynolds mreynolds is offline
Team Captain | Head of Controls
AKA: Matthew Reynolds
FRC #4946 (The Alpha Dogs)
Team Role: Programmer
 
Join Date: Sep 2015
Rookie Year: 2014
Location: Ontario, Canada
Posts: 9
mreynolds is an unknown quantity at this point
If you can't find it, feel free to PM me I can walk you through it. I'd just send you resources now, but I'm only on my phone
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 12:03.

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