Go to Post I do this for the people...the kids, the mentors, and especially, with all my heart, the volunteers. Thank you for all you do. - Andy Grady [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 14-04-2006, 00:11
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Can't get auto mode to run with OI switches

Hey all..

I have a potentiometer with detents that is mounted on the oi controller.

I have no idea whats going on.. I set up a static int newautoselect inside user_control.h,

int currentauto;

unsigned int autopos;
unsigned int temp_autopos;
int autocount;
autopos = p2_wheel;

autocount ++;

if(autocount >= 26)
{
autopos = currentauto;
}

if(currentauto > 20 | currentauto < 40)
{
newautoselect = 1;
}
else if(currentauto > 50 | currentauto < 60)
{
newautoselect = 2;
}
else if(currentauto > 100 | currentauto < 120)
{
newautoselect = 3;
}
else if(currentauto > 130 | currentauto < 150)
{
newautoselect = 4;
}
else if(currentauto > 160 | currentauto < 190)
{
newautoselect = 5;
}
else if(currentauto > 200 | currentauto < 250)
{
newautoselect = 6;
}

why doesnt auto mode pick this up?
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
A statistical analysis of the "autonomous advantadge" Greg Marra General Forum 51 25-03-2006 21:09
Favorite Autonomous Mode George A. General Forum 49 12-05-2005 15:33
I fail to see the point.. randomperson Programming 14 27-03-2003 11:38
picking auto program Mike375 Programming 19 03-03-2003 15:47
Need help with 255 Variable Joseph F Programming 18 26-02-2002 14:49


All times are GMT -5. The time now is 09:40.

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