Go to Post "I'm not going to tell you all that you all are winners. At this point you are smart enough to know whether you are or you aren't." -Woodie Flowers - Barry Bonzack [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 02-02-2013, 00:41
magic31415 magic31415 is offline
Registered User
FRC #3950
 
Join Date: Feb 2013
Location: NY
Posts: 4
magic31415 is an unknown quantity at this point
New Subsystem or Miss a Packet

Hi. I am currently working on code in Java for the Drive Train using Netbeans and WPI templates. We have pneumatic gear shifters on the wheels which work just fine. However, due to the way the robot is programmed, only one command can be executed on each subsystem at a time. Since I put the shifter and the drive wheels on the same subsystem, the shifter must 'interrupt' the wheels. This does not seem to be an issue since the wheels will only be interrupted for one packet of information while the gear shift is sent (about 30 ms). This missed information is not visible, but the stopping of the motor may be unhealthy for the robot in the long term. So, should I make a separate subsystem for the shifter so the drive motors don't turn off or does it not really matter?

Thanks!

Max Corwin
North Shore High School, Team 3950
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2013, 14:04
ThaDeanesta ThaDeanesta is offline
Registered User
AKA: Kyle
FRC #0175 (Buzz Robotics)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Connecticut
Posts: 6
ThaDeanesta is an unknown quantity at this point
Re: New Subsystem or Miss a Packet

Just remove reequires("drivesubsystem") from your drive and shift command.

That way more than one command can run on the drive base without taking away the entire subsystem.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2013, 23: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: New Subsystem or Miss a Packet

I just made a separate subsystem, you can do it either way. It's really personal preference.
__________________
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
  #4   Spotlight this post!  
Unread 05-02-2013, 23:06
gixxy's Avatar
gixxy gixxy is offline
Programming and Arduino Mentor
AKA: Gustave Michel III
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Ruston, LA
Posts: 207
gixxy is on a distinguished road
Re: New Subsystem or Miss a Packet

We had that setup last year, we did separate subsystems. Just easier (to me at least) to separate it if they will both need to be doing something at the same time.
__________________
Programmer - A creature known for converting Caffeine into Code.
Studying Computer Science @ Louisiana Tech University
Associate Consultant @ Fenway Group

2012-13: 3946 - Head of Programming, Electrical and Web
2014 - 3468 - Programming Mentor
2015 - Present - Lurker
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:51.

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