Go to Post "Why yes, actually I AM a rocket scientist" - Gary Dillard [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 21-01-2007, 10:14
itay_ms itay_ms is offline
Registered User
FRC #2215
 
Join Date: Jan 2007
Location: israel
Posts: 17
itay_ms is an unknown quantity at this point
Simulating autonomous mode - i need help!! :(

Hi, im kinda nooby with the programming so id apreciate if u help me, i noticed that in the main function the condition for autonomous mode is that autonomous_mode will have a value, but can i control this value in order to make the autonomous mode work so i can see the whole camera thing working?
i realy hope im making sense here and that someone will help me.

Thank you for your time!
  #2   Spotlight this post!  
Unread 21-01-2007, 10:26
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Simulating autonomous mode - i need help!! :(

Rather than directly manipulating that variable (can be dangerous* if you forget to remove the code), what we did last year was something like this:

if(autonomous_mode || p3_sw_trig)

This way, it would still work normally in competition, and if we had a joystick connected to port 3, we could trigger it at will.

*The reason this is dangerous is simply if you lock autonomous_mode to 1 then forget to remove it later (it can happen, trust me), your team will be angry at you because your robot never left autonomous mode. Likewise, if you hardcode it to 0, then your team will be angry because your autonomous mode never worked. The or I propose here allows you to simply attach a joystick to port 3. Once you're done, just put tape on port 3 saying "programmers only" so that no-one triggers it by accident.

The ideal way to do this is to make a competition port. However, I know very few details about how to do that, so someone will have to post details on that.
  #3   Spotlight this post!  
Unread 21-01-2007, 10:56
itay_ms itay_ms is offline
Registered User
FRC #2215
 
Join Date: Jan 2007
Location: israel
Posts: 17
itay_ms is an unknown quantity at this point
Re: Simulating autonomous mode - i need help!! :(

well, the thing is, i totaly understood what u posted but i dont understand something a lot basic than that, i dont understand what determines the value of autonomous_mode in the first place, it seems logical to me that we will have a switch that determines if the robot is in autonomous mode or regular mode, so how can i determine the value of autonomous_mode? or am i jsut getting it all wrong lol
  #4   Spotlight this post!  
Unread 21-01-2007, 10:57
DanDon's Avatar
DanDon DanDon is offline
ohhh MY god
AKA: Dan Hoizner
FRC #0375 (The Robotic Plague)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
DanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond reputeDanDon has a reputation beyond repute
Send a message via ICQ to DanDon Send a message via AIM to DanDon Send a message via MSN to DanDon
Re: Simulating autonomous mode - i need help!! :(

The value of autonomous_mode is set by the main field computer, its totally out of your control. It happens automagically.
__________________
  #5   Spotlight this post!  
Unread 21-01-2007, 11:00
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Simulating autonomous mode - i need help!! :(

Itay,

The best way is to leave the code alone and build a competition port dongle.

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #6   Spotlight this post!  
Unread 21-01-2007, 11:28
itay_ms itay_ms is offline
Registered User
FRC #2215
 
Join Date: Jan 2007
Location: israel
Posts: 17
itay_ms is an unknown quantity at this point
Re: Simulating autonomous mode - i need help!! :(

Thank u all guys uve helped me a lot, i got what ur saying now, i guess id knew that if it wasnt our first year in FIRST good to have so many ppl helping.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto mode... need help teh_pwnerer795 Programming 15 20-02-2007 11:32
Autonomous mode chs938 Programming 1 03-02-2006 10:19
need help with autonomous caderader Programming 3 14-02-2005 18:25
New to C but not to basic, need help on autonomous cdennisxlx2 Programming 4 02-02-2005 03:38
Autonomous mode Tyler Olds General Forum 30 22-02-2004 14:31


All times are GMT -5. The time now is 08:17.

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