Go to Post Mountain Dew and Taco Bell. Nom Nom Nom. - R.C. [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 12-02-2005, 19:33
ace123's Avatar
ace123 ace123 is offline
Registered User
AKA: Patrick Horn
FRC #0008 (Paly Robotics - http://robotics.paly.net/)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Palo Alto, CA
Posts: 50
ace123 has a spectacular aura aboutace123 has a spectacular aura about
Send a message via AIM to ace123
OI/Control Board LEDs during Autonomous

Do you know how to set the LEDs during Autonomous? (Pwm1_green/Pwm1_red)
It helps a lot to be able to know what the robot is doing at a specific moment.

I know that I am writing it out, because the same code works outside of autonomous. (I just copied the part of user_routines and changed p1_x to pwm01, etc.)

Do I have to use the dashboard to read these? If so, how do I write to the dashboard?

What about LED's hooked up to outputs on the RC itself? Is it legal to do this for feedback purposes?
__________________
-Patrick Horn, Paly Robotics

Check out the space simulator called Vega Strike, modelled after the space simulator games Elite and Wing Commander. It's Open Source too!
If you have ever played Wing Commander, or especially Privateer, and had a feeling of nostalga derived from the you will enjoy these two Vega Strike mods: Privateer Gemini Gold and Privateer Remake!
I'm working on adding multiplayer support this year...
  #2   Spotlight this post!  
Unread 12-02-2005, 19:38
probizzle's Avatar
probizzle probizzle is offline
Registered User
AKA: Prabhas Pokharel
#0639 (Code Red)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Ithaca
Posts: 78
probizzle will become famous soon enoughprobizzle will become famous soon enough
Send a message via AIM to probizzle
Re: OI/Control Board LEDs during Autonomous

lol, JUST finished writing this

Code:
int flicka;

//somewhere in User_Initialization..
    flicka = 0;

//Where it says "put your autonomous code in here in user_routines_fast.c

   Pwm1_green = Pwm2_green = Pwm1_red = Pwm2_red = flicka = !flicka;
This flickers the green and red leds of Pwm1 and Pwm2 on the rc.
Hope this helps.
__________________
Code Red Team 639 Winners of the 2005 FingerLakes Regional with 191 and 494.
--
http://pset.deu83.com << my baby
http://www.setgame.com/set/ << it's mother

Last edited by probizzle : 12-02-2005 at 21:20.
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
Despite what IFI says, you can configure autonomous from OI... TedP Programming 19 31-03-2004 10:09
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11


All times are GMT -5. The time now is 19:15.

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