Go to Post (If Dean still says 'Nationals', how can you ridicule a rookie team for it? Come on.) - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-08-2015, 16:25
Baldstrom Baldstrom is offline
Chief Engineer
AKA: Jaden Bottemiller
FRC #4579 (RoboEagles)
Team Role: Engineer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: United States
Posts: 1
Baldstrom is an unknown quantity at this point
Analysis of the drive() method

During the build season, our programming team wanted to use the drive() method with predictable results on the field. We tried adjusting parameters but never got the result we wanted, even when we dove into the source code of the RobotDrive class's drive() method we didn't, at first, understand what inputs would give us specific results. So naturally, we broke it down and analyzed it. These are our findings (attached).

Our team was using Java; we assume the method uses the same or relatively the same calculation for other programming languages.


Thanks!
Jaden Bottemiller
Attached Files
File Type: pdf driveAnalysis.pdf (210.8 KB, 208 views)
  #2   Spotlight this post!  
Unread 02-08-2015, 22:32
calcmogul's Avatar
calcmogul calcmogul is offline
WPILib Developer
AKA: Tyler Veness
FRC #3512 (Spartatroniks)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Santa Maria, CA
Posts: 51
calcmogul is just really nicecalcmogul is just really nicecalcmogul is just really nicecalcmogul is just really nice
Re: Analysis of the drive() method

If you want, you could clone WPILib, commit your drive() documentation improvements, generate a patch with "git format-patch", and submit that patch in a new bug in the bug tracker. I can submit your patch for review for you.
  #3   Spotlight this post!  
Unread 03-08-2015, 09:07
AlexD744 AlexD744 is offline
Registered User
FRC #0744 (744 Shark Attack)
Team Role: Alumni
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Ft. Lauderdale, FL
Posts: 638
AlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond reputeAlexD744 has a reputation beyond repute
Re: Analysis of the drive() method

Very interesting, thank you for sharing your findings! We typically directly set the motor outputs (using setLeftRightMotorOutputs()), but I once used the drive() method and also felt similarly confused by the lack of documentation. I will refer to this next time I need to use it.
__________________
www.sharkattack744.com
  #4   Spotlight this post!  
Unread 06-08-2015, 13:11
Xanawatt Xanawatt is offline
Registered User
FRC #1024
 
Join Date: May 2015
Location: Indianapolis, Indiana
Posts: 22
Xanawatt is an unknown quantity at this point
Re: Analysis of the drive() method

This is so helpful! Might actually use this method in future years for auto purposes. It seems like it can do a lot of very complicated things!
Closed Thread


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 02:06.

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