Go to Post You just have to care enough to give it a try. Your mentors will appreciate the effort. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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
  #1   Spotlight this post!  
Unread 27-01-2013, 21:44
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Moving autonomous programs to teleop

I am looking for some help with automating some tasks in teleop by using code from autonomous.

For example, lets say I have an autonomous mode where the first while loop is to drive straight using encoders for a certain distance, then move to another loop where the robot turns in a circle using the encoders, and then moves to a while loop where the motors are stopped.

Now lets say that I want to use that code during teleop if i press a button. Do I just copy the code from autonomous and place it in a case structure attached to the button in teleop? Does it have to go in periodic tasks instead? Does each while loop have to be in a flat sequence as well?

Help please? Thanks
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 12:02.

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