Go to Post My lasting impression of 217 (for years now) has been based on how their robot looks, dynamically. It is poultry in motion. :) - Richard Wallace [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 29-01-2013, 02:15
M15onebillion M15onebillion is offline
Registered User
FRC #4619
 
Join Date: Jan 2013
Location: Huntington Beach
Posts: 3
M15onebillion is an unknown quantity at this point
Exclamation Robot Not Turning While in Autonomous Mode

Hi, we are having problem with our Autonomous mode. Using the code below the robot seems to stop after going forward for 5 seconds, and does nothing afterwards.

public void autonomous() {
Chassidy.setSafetyEnabled(false);
Chassidy.drive(0.5, 0.0);
Timer.delay(5.0);
Chassidy.drive(0.0, 0.25);
Timer.delay(2.0);
Chassidy.drive(0.0, 0.0);
}


Does anyone know what is wrong with this code?
Much appreciated!

Last edited by M15onebillion : 29-01-2013 at 02:19.
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2013, 11:30
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: Robot Not Turning While in Autonomous Mode

You need to include some sort of forward component to the drive method to move it... for example..
Chassidy.drive(0.5, 1);
To turn in place. The first number is an output magnitude where as the second is a turning value.
__________________

jRIO 2013 Project
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2013, 15:37
M15onebillion M15onebillion is offline
Registered User
FRC #4619
 
Join Date: Jan 2013
Location: Huntington Beach
Posts: 3
M15onebillion is an unknown quantity at this point
Re: Robot Not Turning While in Autonomous Mode

Alright, Thank you!
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 10:09.

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