We go together like a Drill motor, reduced by 3.6:1, and a CIM motor.
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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 09-02-2017, 18:04
jmcculloch jmcculloch is offline
Jeremy McCulloch
FRC #2485 (W.A.R. (We Are Robot) Lords)
Team Role: Programmer
 
Join Date: May 2016
Rookie Year: 2015
Location: San Diego
Posts: 6
jmcculloch is a jewel in the roughjmcculloch is a jewel in the roughjmcculloch is a jewel in the roughjmcculloch is a jewel in the rough
Re: Autonomous for gears

I'm not sure what you are trying to do with the isFinished() method, but as you have it written right now it will never finish, because centerX will always either be >0 or <237, and the method will return false.

Other than that your logic in execute() looks okay, provided the code that runs in the vision thread works. You may consider using PID to turn the robot instead of feeding values directly into arcade drive method. Hope this helps.
Reply With Quote
 


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 15:34.

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