Go to Post Sometimes the team really needs the kid, and sometimes the kid really needs the team. - Taylor [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 24-03-2016, 22:28
Sasha_Nut's Avatar
Sasha_Nut Sasha_Nut is offline
Registered User
AKA: Emilija Kaupaite
FRC #4103 (Roborioles)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Avon, IN
Posts: 15
Sasha_Nut is an unknown quantity at this point
Re: Need Help With Encoders

Going along with what JohnFogarty was saying, in your LowBarAuton, the default has to be at the end of the switch.
Reply With Quote
  #2   Spotlight this post!  
Unread 24-03-2016, 22:41
remulasce remulasce is offline
Registered User
no team
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Mtn View
Posts: 139
remulasce is a splendid one to beholdremulasce is a splendid one to beholdremulasce is a splendid one to beholdremulasce is a splendid one to beholdremulasce is a splendid one to beholdremulasce is a splendid one to beholdremulasce is a splendid one to behold
Re: Need Help With Encoders

So after a brief review, I can tell you the code looks really messy.

But, nothing actually appears incorrect in the autonomous sequence. Which is why we need the reason why you think it's wrong.

It's perfectly valid in Java to put default: before the case:es. You're doing it really messily in LowBarAuton, but it does work.

Again. Please tell us exactly how you are trying to run autonomous and how it "fails". We can't help you solve something you haven't told us about.
__________________
Student 294: 2007-2011
Mentor 597: 2013-2015
Google SWE: 2015-
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:11.

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