Go to Post Force yourself now, today, to learn one new thing each day. When you lay down on your fluffy pillow at night, before you say your prayers, ask yourself if you have learned anything new. If the answer is "NO" then you better get up and find something. - Al Skierkiewicz [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 01-29-2016, 09:16 AM
CjDace CjDace is offline
Registered User
FRC #4284
 
Join Date: Jan 2016
Location: Cincinnati, Ohio
Posts: 10
CjDace is an unknown quantity at this point
Autonomous Mecanum Drive

Hey guys, me again, I'm not entirely sure on how to set up the autonomous mecanum drive. This is what we have as of right now
Code:
public void autonomousPeriodic() {
	    	while (isAutonomous() && isEnabled()){
	    		myDrive.mecanumDrive_Cartesian(.25, .25, 1, scotbot.getAngle());
Any possible help would be greatly appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-29-2016, 11:25 AM
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 232
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: Autonomous Mecanum Drive

Quote:
Originally Posted by CjDace View Post
Code:
public void autonomousPeriodic() {
	    	while (isAutonomous() && isEnabled()){
First off, you shouldn't do this. You're using Iterative so the autonomousPeriodic gets called over and over. If you put a while loop in it messes this up.
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
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 08:25 AM.

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